aboutsummaryrefslogtreecommitdiff
path: root/video/coktel_decoder.cpp
diff options
context:
space:
mode:
authorSven Hesse2013-06-30 19:07:04 +0200
committerSven Hesse2013-06-30 19:07:04 +0200
commit4b3f5149b522aafe884219284a2bef2ff3adb8ec (patch)
treebf13aeff992b2f6c2b1236789cb9921dd0b1d6a5 /video/coktel_decoder.cpp
parent231586d924c03eeb8b9fb825cc87e5dd56aa0500 (diff)
downloadscummvm-rg350-4b3f5149b522aafe884219284a2bef2ff3adb8ec.tar.gz
scummvm-rg350-4b3f5149b522aafe884219284a2bef2ff3adb8ec.tar.bz2
scummvm-rg350-4b3f5149b522aafe884219284a2bef2ff3adb8ec.zip
VIDEO: Add hypothetical 32bpp support
Diffstat (limited to 'video/coktel_decoder.cpp')
-rw-r--r--video/coktel_decoder.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/video/coktel_decoder.cpp b/video/coktel_decoder.cpp
index d24a021f3b..4c3b6f8414 100644
--- a/video/coktel_decoder.cpp
+++ b/video/coktel_decoder.cpp
@@ -2426,8 +2426,10 @@ void VMDDecoder::blit16(const Graphics::Surface &srcSurf, Common::Rect &rect) {
if ((r == 0) && (g == 0) && (b == 0))
c = 0;
- if (_surface.format.bytesPerPixel == 2)
+ if (_surface.format.bytesPerPixel == 2)
*((uint16 *)dstRow) = (uint16) c;
+ else if (_surface.format.bytesPerPixel == 4)
+ *((uint32 *)dstRow) = (uint32) c;
}
src += srcSurf .pitch;
@@ -2462,8 +2464,10 @@ void VMDDecoder::blit24(const Graphics::Surface &srcSurf, Common::Rect &rect) {
if ((r == 0) && (g == 0) && (b == 0))
c = 0;
- if (_surface.format.bytesPerPixel == 2)
+ if (_surface.format.bytesPerPixel == 2)
*((uint16 *)dstRow) = (uint16) c;
+ else if (_surface.format.bytesPerPixel == 4)
+ *((uint32 *)dstRow) = (uint32) c;
}
src += srcSurf .pitch;