aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter_v4.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-09-30 13:03:22 +0000
committerSven Hesse2010-09-30 13:03:22 +0000
commit3ab8bf16a27f34ed865edd7c028d0dff90448622 (patch)
treea6d80a44b207246daac34a2fcc7c93e42ebe5372 /engines/gob/inter_v4.cpp
parent4f2b58b11740c8bdeb728a4798e572e8c9d1d990 (diff)
downloadscummvm-rg350-3ab8bf16a27f34ed865edd7c028d0dff90448622.tar.gz
scummvm-rg350-3ab8bf16a27f34ed865edd7c028d0dff90448622.tar.bz2
scummvm-rg350-3ab8bf16a27f34ed865edd7c028d0dff90448622.zip
GOB: Create 16bit surfaces for true color games
Enabling basic Urban drawing again svn-id: r52949
Diffstat (limited to 'engines/gob/inter_v4.cpp')
-rw-r--r--engines/gob/inter_v4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/inter_v4.cpp b/engines/gob/inter_v4.cpp
index b47691b40f..26eff4f675 100644
--- a/engines/gob/inter_v4.cpp
+++ b/engines/gob/inter_v4.cpp
@@ -134,8 +134,8 @@ void Inter_v4::o4_initScreen() {
_vm->_util->setScrollOffset();
if (offY > 0) {
- _vm->_draw->_spritesArray[24] = SurfacePtr(new Surface(_vm->_width, offY, 1));
- _vm->_draw->_spritesArray[25] = SurfacePtr(new Surface(_vm->_width, offY, 1));
+ _vm->_draw->_spritesArray[24] = SurfacePtr(new Surface(_vm->_width, offY, _vm->getPixelFormat().bytesPerPixel));
+ _vm->_draw->_spritesArray[25] = SurfacePtr(new Surface(_vm->_width, offY, _vm->getPixelFormat().bytesPerPixel));
_vm->_video->_splitSurf = _vm->_draw->_spritesArray[25];
}
}