[haiku-commits] r40561 - haiku/trunk/src/apps/showimage

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 19 Feb 2011 19:00:05 +0100 (CET)

Author: stippi
Date: 2011-02-19 19:00:05 +0100 (Sat, 19 Feb 2011)
New Revision: 40561
Changeset: http://dev.haiku-os.org/changeset/40561

Modified:
   haiku/trunk/src/apps/showimage/ShowImageWindow.cpp
Log:
Fixed a bug noticed by Axel (thanks!): Don't store the fullscreen window
frame when quitting ShowImage in fullscreen mode, but the old window frame
instead which would be restored when leaving fullscreen more.


Modified: haiku/trunk/src/apps/showimage/ShowImageWindow.cpp
===================================================================
--- haiku/trunk/src/apps/showimage/ShowImageWindow.cpp  2011-02-19 17:03:21 UTC 
(rev 40560)
+++ haiku/trunk/src/apps/showimage/ShowImageWindow.cpp  2011-02-19 18:00:05 UTC 
(rev 40561)
@@ -1369,7 +1369,10 @@
 
        ShowImageSettings* settings = my_app->Settings();
        if (settings->Lock()) {
-               settings->SetRect("WindowFrame", Frame());
+               if (fFullScreen)
+                       settings->SetRect("WindowFrame", fWindowFrame);
+               else
+                       settings->SetRect("WindowFrame", Frame());
                settings->Unlock();
        }
 


Other related posts:

  • » [haiku-commits] r40561 - haiku/trunk/src/apps/showimage - superstippi