QTfrontend/hwform.cpp
changeset 1163 5186cf914549
parent 1162 91bf5e3e558d
child 1165 40eeae82e70b
--- a/QTfrontend/hwform.cpp	Thu Aug 07 13:30:09 2008 +0000
+++ b/QTfrontend/hwform.cpp	Thu Aug 07 13:38:24 2008 +0000
@@ -133,7 +133,11 @@
 void HWForm::onFrontendFullscreen(bool value)
 {
   qDebug() << "fullscreen = " << value;
-  setWindowState(windowState() | (value ? Qt::WindowFullScreen : Qt::WindowNoState));
+  if (value)
+    setWindowState(windowState() | Qt::WindowFullScreen);
+  else {
+    setWindowState(windowState() & !Qt::WindowFullScreen);
+  }
 }
 
 void HWForm::UpdateWeapons()