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; }