From bf9071ee27c6f1b7a76d2d6ed32eaf89ecd0180e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 2 Jan 2006 15:10:43 +0000 Subject: [PATCH] SupportsWindowMode now always return true, at least for the moment. Chart works with DirectWindow in window mode even with the vesa driver git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15797 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/game/DirectWindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kits/game/DirectWindow.cpp b/src/kits/game/DirectWindow.cpp index e521620b14..6bd2b2598f 100644 --- a/src/kits/game/DirectWindow.cpp +++ b/src/kits/game/DirectWindow.cpp @@ -291,12 +291,16 @@ BDirectWindow::IsFullScreen() const bool BDirectWindow::SupportsWindowMode(screen_id id) { - display_mode mode; +/* display_mode mode; status_t status = BScreen(id).GetMode(&mode); if (status == B_OK) return mode.flags & B_PARALLEL_ACCESS; - return false; + return false;*/ + // TODO: Apparently, the above is false for the vesa driver, + // but enabling it doesn't do any harm... maybe we should just return always true. + // At least, I can't see why window mode shouldn't be supported. + return true; }