From bfc3bb1838304a203c29a298ffff3f94379be737 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 23 Mar 2004 07:19:07 +0000 Subject: [PATCH] Finished SetFullscreen() implementation git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7058 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/DirectWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/kits/game/DirectWindow.cpp b/src/kits/game/DirectWindow.cpp index 320464331f..b9d1aae372 100644 --- a/src/kits/game/DirectWindow.cpp +++ b/src/kits/game/DirectWindow.cpp @@ -287,9 +287,12 @@ BDirectWindow::SetFullScreen(bool enable) a_session->swrite_l(enable); Flush(); - // TODO: read back status from the app server, - // and set the full_screen_enable variable accordingly + status_t fullScreen; + a_session->sread(sizeof(status_t), &fullScreen); + a_session->sread(sizeof(status_t), &status); Unlock(); + + full_screen_enable = (fullScreen == B_OK); } return status; }