aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/vga.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-02-08 23:37:17 +0000
committerTravis Howell2007-02-08 23:37:17 +0000
commitf8052bb650719b8a716e686e6a08ae75b513a903 (patch)
tree26e610e1f137d8987793e028dac55e03a6a7f190 /engines/agos/vga.cpp
parent956affd3d23cc8030775dc1a81984891a344d134 (diff)
downloadscummvm-rg350-f8052bb650719b8a716e686e6a08ae75b513a903.tar.gz
scummvm-rg350-f8052bb650719b8a716e686e6a08ae75b513a903.tar.bz2
scummvm-rg350-f8052bb650719b8a716e686e6a08ae75b513a903.zip
Convert planar images, only when required for drawing.
svn-id: r25433
Diffstat (limited to 'engines/agos/vga.cpp')
-rw-r--r--engines/agos/vga.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp
index 6765ae10c5..93aeda6c5e 100644
--- a/engines/agos/vga.cpp
+++ b/engines/agos/vga.cpp
@@ -617,6 +617,10 @@ void AGOSEngine::vc10_draw() {
if (height == 0 || width == 0)
return;
+ if (getFeatures() & GF_PLANAR) {
+ state.depack_src = convertclip(state.depack_src, height, width * 16, flags);
+ }
+
if (_dumpImages)
dumpSingleBitmap(_vgaCurZoneNum, state.image, state.depack_src, width, height,
state.palette);