From 3f9ae8a3cedf8fcb2fe34eae3867a688f850c219 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 5 Jul 2004 07:11:22 +0000 Subject: [PATCH] Looks like SetFullScreen wasn't correct and could crash. Fixed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8295 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/DirectWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/game/DirectWindow.cpp b/src/kits/game/DirectWindow.cpp index b9d1aae372..b01ac53f42 100644 --- a/src/kits/game/DirectWindow.cpp +++ b/src/kits/game/DirectWindow.cpp @@ -292,7 +292,10 @@ BDirectWindow::SetFullScreen(bool enable) a_session->sread(sizeof(status_t), &status); Unlock(); - full_screen_enable = (fullScreen == B_OK); + // TODO: Revisit this when we move to our app_server + // Currently the full screen/window status is set + // even if something goes wrong + full_screen_enable = enable; } return status; }