diff options
author | Johannes Schickel | 2011-03-20 17:30:23 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-03-20 17:30:23 +0100 |
commit | 33cf1f8f598f1137c710f17c6676784bb6b3674a (patch) | |
tree | 9c041720802261062cb8cddee478ec9641fdd830 /backends | |
parent | 6502e191b939ad836c92dc602a6f0e4e4c75b044 (diff) | |
download | scummvm-rg350-33cf1f8f598f1137c710f17c6676784bb6b3674a.tar.gz scummvm-rg350-33cf1f8f598f1137c710f17c6676784bb6b3674a.tar.bz2 scummvm-rg350-33cf1f8f598f1137c710f17c6676784bb6b3674a.zip |
OPENGL: Get rid of unused switchDisplayMode.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 16 | ||||
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.h | 9 |
2 files changed, 0 insertions, 25 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index 6904a1d094..135b1fcded 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -1384,22 +1384,6 @@ const char *OpenGLGraphicsManager::getCurrentModeName() { return modeName; } -void OpenGLGraphicsManager::switchDisplayMode(int mode) { - assert(_transactionMode == kTransactionActive); - - if (_videoMode.mode == mode) - return; - - if (mode == -1) // If -1, switch to next mode - _videoMode.mode = (_videoMode.mode + 1) % 4; - else if (mode == -2) // If -2, switch to previous mode - _videoMode.mode = (_videoMode.mode + 3) % 4; - else - _videoMode.mode = mode; - - _transactionDetails.needRefresh = true; -} - #ifdef USE_OSD void OpenGLGraphicsManager::updateOSD() { // The font we are going to use: diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h index 33eab7653c..374f1c196e 100644 --- a/backends/graphics/opengl/opengl-graphics.h +++ b/backends/graphics/opengl/opengl-graphics.h @@ -217,15 +217,6 @@ protected: int _displayWidth; int _displayHeight; - /** - * Sets the dispaly mode. - * - * This can only be used in a GFX transaction. - * - * @param mode the dispaly mode, if -1 it will switch to next mode. If -2 to previous mode. - */ - virtual void switchDisplayMode(int mode); - virtual const char *getCurrentModeName(); virtual void calculateDisplaySize(int &width, int &height); |