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:
parent
fb984c136f
commit
d913595783
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user