OPENGL: Move setFullscreenMode to OpenGLGraphicsManager.
This commit is contained in:
parent
8d87a460b0
commit
83b199e921
4 changed files with 26 additions and 16 deletions
|
@ -79,9 +79,6 @@ bool OpenGLSdlGraphicsManager::hasFeature(OSystem::Feature f) {
|
|||
|
||||
void OpenGLSdlGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) {
|
||||
switch (f) {
|
||||
case OSystem::kFeatureFullscreenMode:
|
||||
setFullscreenMode(enable);
|
||||
break;
|
||||
case OSystem::kFeatureIconifyWindow:
|
||||
if (enable)
|
||||
SDL_WM_IconifyWindow();
|
||||
|
@ -422,16 +419,6 @@ void OpenGLSdlGraphicsManager::displayScaleChangedMsg() {
|
|||
}
|
||||
#endif
|
||||
|
||||
void OpenGLSdlGraphicsManager::setFullscreenMode(bool enable) {
|
||||
if (_oldVideoMode.setup && _oldVideoMode.fullscreen == enable)
|
||||
return;
|
||||
|
||||
if (_transactionMode == kTransactionActive) {
|
||||
_videoMode.fullscreen = enable;
|
||||
_transactionDetails.needRefresh = true;
|
||||
}
|
||||
}
|
||||
|
||||
bool OpenGLSdlGraphicsManager::isHotkey(const Common::Event &event) {
|
||||
if ((event.kbd.flags & (Common::KBD_CTRL|Common::KBD_ALT)) == (Common::KBD_CTRL|Common::KBD_ALT)) {
|
||||
if (event.kbd.keycode == Common::KEYCODE_PLUS || event.kbd.keycode == Common::KEYCODE_MINUS ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue