diff options
author | Martin Kiewitz | 2010-06-18 18:55:17 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-18 18:55:17 +0000 |
commit | 602b32175a75cac3ddf6d8ff531202fe197c91c4 (patch) | |
tree | c54d852f35864aa24031e48f6e99fbd462d76b2b /engines/sci/graphics | |
parent | 8c8ce14164c21210e05115ab6a8f4f3f8a1d0e20 (diff) | |
download | scummvm-rg350-602b32175a75cac3ddf6d8ff531202fe197c91c4.tar.gz scummvm-rg350-602b32175a75cac3ddf6d8ff531202fe197c91c4.tar.bz2 scummvm-rg350-602b32175a75cac3ddf6d8ff531202fe197c91c4.zip |
SCI: fixing detection of vga sci11 views for ega games (original change in r50025)
svn-id: r50028
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/view.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 3fdfd86d2f..6c0f6fda75 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -87,14 +87,10 @@ void GfxView::initData(GuiResourceId resourceId) { // caught by our undithering or even improve the graphics overall) if (curViewType == kViewEga) { if (_resourceData[1] == 0x80) { - switch (READ_LE_UINT16(_resourceData + 4)) { - case 0: // SCI1 - curViewType = kViewVga; - break; - case 1: // SCI1.1 + curViewType = kViewVga; + } else { + if (READ_LE_UINT16(_resourceData + 4) == 1) curViewType = kViewVga11; - break; - } } } |