diff options
author | Martin Kiewitz | 2010-08-19 22:21:03 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-19 22:21:03 +0000 |
commit | af46e0fdc0ac4cc0523df9baa1b4961cbf480e4c (patch) | |
tree | ddfcb0ed5c5ebcbf76144aa483637ba3cc3cdb0a /engines/sci | |
parent | 67c1997bf4cb154d0fb59290d96fa4d5c439581c (diff) | |
download | scummvm-rg350-af46e0fdc0ac4cc0523df9baa1b4961cbf480e4c.tar.gz scummvm-rg350-af46e0fdc0ac4cc0523df9baa1b4961cbf480e4c.tar.bz2 scummvm-rg350-af46e0fdc0ac4cc0523df9baa1b4961cbf480e4c.zip |
SCI: disabling EGA mapping after sci1ega
fixes vga conversion games graphic glitches, some views have bad mapping tables
svn-id: r52218
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/view.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 5f48574dcb..6b22ed397e 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -128,8 +128,11 @@ void GfxView::initData(GuiResourceId resourceId) { _palette->createFromData(&_resourceData[palOffset], _resourceSize - palOffset, &_viewPalette); _embeddedPal = true; } else { - // Only use the EGA-mapping, when being SCI1 - if (getSciVersion() >= SCI_VERSION_1_EGA) { + // Only use the EGA-mapping, when being SCI1 EGA + // SCI1 VGA conversion games (which will get detected as SCI1EARLY/MIDDLE/LATE) have some views + // with broken mapping tables. I guess those games won't use the mapping, so I rather disable it + // for them + if (getSciVersion() == SCI_VERSION_1_EGA) { _EGAmapping = &_resourceData[palOffset]; for (EGAmapNr = 0; EGAmapNr < SCI_VIEW_EGAMAPPING_COUNT; EGAmapNr++) { if (memcmp(_EGAmapping, EGAmappingStraight, SCI_VIEW_EGAMAPPING_SIZE) != 0) |