aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-20 20:28:00 -0500
committerrichiesams2013-08-20 20:28:00 -0500
commitcf8a8df776a28d5c4474848448b231d55b0c0c71 (patch)
treedefbc8beba5f68970e701a76618c39c4a6bb934d /engines
parent9af92b8723bdba3b9e540d9e0ba3a9142bc2e480 (diff)
downloadscummvm-rg350-cf8a8df776a28d5c4474848448b231d55b0c0c71.tar.gz
scummvm-rg350-cf8a8df776a28d5c4474848448b231d55b0c0c71.tar.bz2
scummvm-rg350-cf8a8df776a28d5c4474848448b231d55b0c0c71.zip
ZVISION: Remove superfluous file
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/tests.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/engines/zvision/tests.h b/engines/zvision/tests.h
deleted file mode 100644
index 14f80ed83b..0000000000
--- a/engines/zvision/tests.h
+++ /dev/null
@@ -1,54 +0,0 @@
-
-namespace ZVision {
-
-void tests() {
-#if 0
- // Video test
- Video::VideoDecoder *videoDecoder = new ZorkAVIDecoder();
- if (videoDecoder && videoDecoder->loadFile("zassets/temple/t000a11c.avi")) {
- Common::List<Graphics::PixelFormat> formats;
- formats.push_back(videoDecoder->getPixelFormat());
- //initGraphics(640, 480, true, formats);
-
- playVideo(videoDecoder);
- }
-#endif
-
- Common::File f;
-
-#if 1
- // Image test
-
- //initGraphics(640, 480, true, &format);
-
- if (f.open(" zassets/global/GJDEB11C.TGA")) {
- Graphics::TGADecoder tga;
- if (!tga.loadStream(f))
- error("Error while reading TGA image");
- f.close();
-
- const Graphics::Surface *tgaSurface = tga.getSurface();
-
- Graphics::Surface *screen = g_system->lockScreen();
- for (uint16 y = 0; y < tgaSurface->h; y++)
- memcpy(screen->getBasePtr(0, y), tgaSurface->getBasePtr(0, y), tgaSurface->pitch);
- g_system->unlockScreen();
-
- tga.destroy();
- }
-
-
-#endif
-
-#if 0
- // Sound test
- if (f.open("zassets/castle/c000h9tc.raw")) {
- Audio::SeekableAudioStream *audioStream = makeRawZorkStream(&f, 22050, DisposeAfterUse::YES);
- Audio::SoundHandle handle;
- g_system->getMixer()->playStream(Audio::Mixer::kSFXSoundType, &handle, audioStream);
- }
-
-#endif
-}
-
-} // End of namespace ZVision