diff options
| author | Alejandro Marzini | 2010-07-26 06:03:55 +0000 |
|---|---|---|
| committer | Alejandro Marzini | 2010-07-26 06:03:55 +0000 |
| commit | 856c6a18afbc7f4611898731db5e1235a6572ff4 (patch) | |
| tree | 805a7ceaa0e507b605576c2d9823d092bca6fa97 /backends/graphics/openglsdl | |
| parent | 37cdff92773972ad52d643ece709c6e5c0823c29 (diff) | |
| download | scummvm-rg350-856c6a18afbc7f4611898731db5e1235a6572ff4.tar.gz scummvm-rg350-856c6a18afbc7f4611898731db5e1235a6572ff4.tar.bz2 scummvm-rg350-856c6a18afbc7f4611898731db5e1235a6572ff4.zip | |
OPENGL: Add OSD message.
svn-id: r51295
Diffstat (limited to 'backends/graphics/openglsdl')
| -rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 95c9b772c7..e97e1f2b4f 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -254,6 +254,12 @@ bool OpenGLSdlGraphicsManager::handleScalerHotkeys(Common::KeyCode key) { _videoMode.antialiasing = !_videoMode.antialiasing; _transactionDetails.filterChanged = true; endGFXTransaction(); +#ifdef USE_OSD + if (_videoMode.antialiasing) + displayMessageOnOSD("Active filter mode: Linear"); + else + displayMessageOnOSD("Active filter mode: Nearest"); +#endif return true; } @@ -268,6 +274,26 @@ bool OpenGLSdlGraphicsManager::handleScalerHotkeys(Common::KeyCode key) { beginGFXTransaction(); setScale(factor); endGFXTransaction(); +#ifdef USE_OSD + const char *newScalerName = 0; + const OSystem::GraphicsMode *g = getSupportedGraphicsModes(); + while (g->name) { + if (g->id == _videoMode.mode) { + newScalerName = g->description; + break; + } + g++; + } + if (newScalerName) { + char buffer[128]; + sprintf(buffer, "Active graphics mode: %s\n%d x %d -> %d x %d", + newScalerName, + _videoMode.screenWidth, _videoMode.screenHeight, + _hwscreen->w, _hwscreen->h + ); + displayMessageOnOSD(buffer); + } +#endif return true; } } |
