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:
@@ -1369,7 +1369,10 @@ ShowImageWindow::QuitRequested()
|
|||||||
|
|
||||||
ShowImageSettings* settings = my_app->Settings();
|
ShowImageSettings* settings = my_app->Settings();
|
||||||
if (settings->Lock()) {
|
if (settings->Lock()) {
|
||||||
settings->SetRect("WindowFrame", Frame());
|
if (fFullScreen)
|
||||||
|
settings->SetRect("WindowFrame", fWindowFrame);
|
||||||
|
else
|
||||||
|
settings->SetRect("WindowFrame", Frame());
|
||||||
settings->Unlock();
|
settings->Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user