OSYSTEM: Add resetGraphicsScale() method.

This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager.

svn-id: r51492
This commit is contained in:
Alejandro Marzini 2010-07-30 03:06:57 +00:00
parent 37f7748a4a
commit 9daa1c7f93
11 changed files with 32 additions and 4 deletions

View file

@ -168,6 +168,10 @@ int OpenGLGraphicsManager::getGraphicsMode() const {
return _videoMode.mode;
}
void OpenGLGraphicsManager::resetGraphicsScale() {
setScale(1);
}
#ifdef USE_RGB_COLOR
Graphics::PixelFormat OpenGLGraphicsManager::getScreenFormat() const {