# HG changeset patch
# User displacer
# Date 1218116304 0
# Node ID 5186cf914549eed852081f36f1b1184c25e6c641
# Parent  91bf5e3e558de33dd9bd2cad86c615f465ffeffd
fullscreen disabling fixed

diff -r 91bf5e3e558d -r 5186cf914549 QTfrontend/hwform.cpp
--- 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()