aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-31 14:38:25 +0000
committerMartin Kiewitz2009-10-31 14:38:25 +0000
commitf36e9cbe4d40dc5235a2a1315eee28ab229bc6dc (patch)
treef449cc40e912cc93dc3dba2d87f77873eff92178 /engines/sci/sci.cpp
parent149d784d0b2be7c0a968f856557724b216cd8a95 (diff)
downloadscummvm-rg350-f36e9cbe4d40dc5235a2a1315eee28ab229bc6dc.tar.gz
scummvm-rg350-f36e9cbe4d40dc5235a2a1315eee28ab229bc6dc.tar.bz2
scummvm-rg350-f36e9cbe4d40dc5235a2a1315eee28ab229bc6dc.zip
SCI/newgui: UpscaledHires implemented including undithering support, cleanup
svn-id: r45562
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 4c0441e0f1..ae6f9a5599 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -105,14 +105,17 @@ Common::Error SciEngine::run() {
return Common::kNoGameDataFoundError;
}
- int scaleFactor = 1;
+ bool upscaledHires = false;
// Scale the screen, if needed
if (!strcmp(getGameID(), "kq6") && getPlatform() == Common::kPlatformWindows)
- scaleFactor = 2;
+ upscaledHires = true;
+
+ // TODO: Detect japanese editions and set upscaledHires on those as well
+ // TODO: Possibly look at first picture resource and determine if its hires or not
// Initialize graphics-related parts
- SciGuiScreen *screen = new SciGuiScreen(_resMan, 320, 200, scaleFactor); // invokes initGraphics()
+ SciGuiScreen *screen = new SciGuiScreen(_resMan, 320, 200, upscaledHires); // invokes initGraphics()
SciGuiPalette *palette = new SciGuiPalette(_resMan, screen);
SciGuiCursor *cursor = new SciGuiCursor(_resMan, palette, screen);
@@ -130,8 +133,8 @@ Common::Error SciEngine::run() {
#ifdef INCLUDE_OLDGFX
// Gui change
- //_gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor); // new
- _gamestate->_gui = new SciGui32(_gamestate, screen, palette, cursor); // old
+ _gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor); // new
+ //_gamestate->_gui = new SciGui32(_gamestate, screen, palette, cursor); // old
#else
_gamestate->_gui = new SciGui(_gamestate, screen, palette, cursor);
#endif