aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/init_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2007-03-04 15:34:58 +0000
committerSven Hesse2007-03-04 15:34:58 +0000
commit2a871cfef20d1a55abea1be090ed6473f43019e0 (patch)
treefd1ac9f411afdb063260715df3c6bbd9b5a4ac9e /engines/gob/init_v2.cpp
parent20da7f80f1765bc4b2adb685cde76377ccbb0350 (diff)
downloadscummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.tar.gz
scummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.tar.bz2
scummvm-rg350-2a871cfef20d1a55abea1be090ed6473f43019e0.zip
- Some minor fixes
- Added the Gob2 Mac version fac76 reported in bug #1673397 svn-id: r25977
Diffstat (limited to 'engines/gob/init_v2.cpp')
-rw-r--r--engines/gob/init_v2.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/gob/init_v2.cpp b/engines/gob/init_v2.cpp
index e8ab0283da..1c5c8790fd 100644
--- a/engines/gob/init_v2.cpp
+++ b/engines/gob/init_v2.cpp
@@ -53,8 +53,13 @@ void Init_v2::soundVideo(int32 smallHeap, int16 flag) {
_vm->_global->_sprAllocated = 0;
_vm->_gtimer->enableTimer();
- if ((_vm->_global->_videoMode == 0x13) || (_vm->_global->_videoMode == 0x14))
- _vm->_global->_colorCount = 256;
+ if ((_vm->_platform == Common::kPlatformPC) || (_vm->_platform == Common::kPlatformMacintosh)) {
+ if ((_vm->_global->_videoMode == 0x13) || (_vm->_global->_videoMode == 0x14))
+ _vm->_global->_colorCount = 256;
+ else
+ _vm->_global->_colorCount = 16;
+ } else
+ _vm->_global->_colorCount = 16;
_vm->_global->_pPaletteDesc = &_vm->_global->_paletteStruct;
_vm->_global->_pPaletteDesc->vgaPal = _vm->_draw->_vgaPalette;