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.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40561 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2011-02-19 18:00:05 +00:00
parent c81df02f40
commit c418e2bedc
+4 -1
View File
@@ -1369,7 +1369,10 @@ ShowImageWindow::QuitRequested()
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();
}