From d913595783500a95677dc59d97624ab0216eabc9 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 26 Aug 2009 11:08:51 +0000 Subject: [PATCH] Disabled BDirectWindow mode for the time being. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32694 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 12 ++++++++++++ src/servers/app/ServerWindow.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 1d352ed04d..3023311752 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -3441,6 +3441,15 @@ ServerWindow::MakeWindow(BRect frame, const char* name, } +/* static */ +bool +ServerWindow::_SupportsDirectMode() +{ + return false; + // TODO: For now, since it's broken +} + + status_t ServerWindow::_EnableDirectWindowMode() { @@ -3449,6 +3458,9 @@ ServerWindow::_EnableDirectWindowMode() return B_ERROR; } + if (!ServerWindow::_SupportsDirectMode()) + return B_ERROR; + fDirectWindowData = new (nothrow) DirectWindowData; if (fDirectWindowData == NULL) return B_NO_MEMORY; diff --git a/src/servers/app/ServerWindow.h b/src/servers/app/ServerWindow.h index 9bbadd62ef..fc400e66e0 100644 --- a/src/servers/app/ServerWindow.h +++ b/src/servers/app/ServerWindow.h @@ -127,6 +127,7 @@ private: virtual void _PrepareQuit(); virtual void _GetLooperName(char* name, size_t size); + static bool _SupportsDirectMode(); status_t _EnableDirectWindowMode(); void _SetCurrentView(View* view);