# HG changeset patch # User koda # Date 1288182227 -7200 # Node ID 45b63c2a694f0fbfd51836b6a6db0282657d721d # Parent b1c2c2f6fc5eb9aab9d95c967a52b6c8a9a029de one more interface trick, force max resolution possible when in fullscreen diff -r b1c2c2f6fc5e -r 45b63c2a694f QTfrontend/pages.cpp --- a/QTfrontend/pages.cpp Wed Oct 27 14:02:20 2010 +0200 +++ b/QTfrontend/pages.cpp Wed Oct 27 14:23:47 2010 +0200 @@ -778,6 +778,12 @@ void PageOptions::setFullscreen(void) { + int tmp = this->CBResolution->currentIndex(); + if (this->CBFullscreen->isChecked()) + this->CBResolution->setCurrentIndex(0); + else + this->CBResolution->setCurrentIndex(previousResolutionIndex); + previousResolutionIndex = tmp; this->CBResolution->setEnabled(!this->CBFullscreen->isChecked()); } diff -r b1c2c2f6fc5e -r 45b63c2a694f QTfrontend/pages.h --- a/QTfrontend/pages.h Wed Oct 27 14:02:20 2010 +0200 +++ b/QTfrontend/pages.h Wed Oct 27 14:23:47 2010 +0200 @@ -243,7 +243,10 @@ QLineEdit *editNetNick; QSlider *SLQuality; QCheckBox *CBFrontendEffects; + +private: bool previousFullscreenValue; + int previousResolutionIndex; private slots: void forceFullscreen(int index);