Disabled BDirectWindow mode for the time being. +alphabranch

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32694 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2009-08-26 11:08:51 +00:00
parent fb984c136f
commit d913595783
2 changed files with 13 additions and 0 deletions

View File

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

View File

@ -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);