diff options
author | Travis Howell | 2007-02-08 23:37:17 +0000 |
---|---|---|
committer | Travis Howell | 2007-02-08 23:37:17 +0000 |
commit | f8052bb650719b8a716e686e6a08ae75b513a903 (patch) | |
tree | 26e610e1f137d8987793e028dac55e03a6a7f190 /engines/agos/vga.cpp | |
parent | 956affd3d23cc8030775dc1a81984891a344d134 (diff) | |
download | scummvm-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.cpp | 4 |
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); |