Skip to content

Commit

Permalink
ENGINES: We have resetGraphicsScale(), lets use it
Browse files Browse the repository at this point in the history
If highres games pass defaultTo1XScaler=true to initGraphics(),
use resetGraphicsScale() instead of hardcoding "1x" (which doesn't
exist on the OpenGL backend)
If an OpenGL mode is selected, it now doesn't switch back to plain
SDL now for those games.
  • Loading branch information
dhewg committed Feb 25, 2011
1 parent 8024f40 commit 93fdcbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engines/engine.cpp
Expand Up @@ -155,10 +155,7 @@ void initCommonGFX(bool defaultTo1XScaler) {

// See if the game should default to 1x scaler
if (useDefaultGraphicsMode && defaultTo1XScaler) {
// FIXME: As a hack, we use "1x" here. Would be nicer to use
// getDefaultGraphicsMode() instead, but right now, we do not specify
// whether that is a 1x scaler or not...
g_system->setGraphicsMode("1x");
g_system->resetGraphicsScale();
} else {
// Override global scaler with any game-specific define
if (ConfMan.hasKey("gfx_mode")) {
Expand Down

0 comments on commit 93fdcbf

Please sign in to comment.