OPENGL: Get rid of unused switchDisplayMode.

This commit is contained in:
Johannes Schickel 2011-03-20 17:30:23 +01:00
parent 6502e191b9
commit 33cf1f8f59
2 changed files with 0 additions and 25 deletions

View file

@ -1384,22 +1384,6 @@ const char *OpenGLGraphicsManager::getCurrentModeName() {
return modeName; 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 #ifdef USE_OSD
void OpenGLGraphicsManager::updateOSD() { void OpenGLGraphicsManager::updateOSD() {
// The font we are going to use: // The font we are going to use:

View file

@ -217,15 +217,6 @@ protected:
int _displayWidth; int _displayWidth;
int _displayHeight; 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 const char *getCurrentModeName();
virtual void calculateDisplaySize(int &width, int &height); virtual void calculateDisplaySize(int &width, int &height);