Fixed a crashing bug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12574 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fbf48e6437
commit
61d296c9f5
@ -1858,6 +1858,8 @@ void ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
|
||||
// 3) workspace index
|
||||
// 4) display_mode to set
|
||||
// 5) 'makedefault' boolean
|
||||
// TODO: See above: workspaces support, etc.
|
||||
|
||||
screen_id id;
|
||||
msg.Read<screen_id>(&id);
|
||||
|
||||
@ -1870,9 +1872,12 @@ void ServerApp::DispatchMessage(int32 code, LinkMsgReader &msg)
|
||||
bool makedefault = false;
|
||||
msg.Read<bool>(&makedefault);
|
||||
|
||||
// TODO: See above: workspaces support, etc.
|
||||
// TODO: Adi doesn't like this: see if
|
||||
// messaging is better.
|
||||
desktop->ActiveRootLayer()->Lock();
|
||||
// TODO: This should return something
|
||||
desktop->GetDisplayDriver()->SetMode(mode);
|
||||
desktop->ActiveRootLayer()->Unlock();
|
||||
|
||||
int32 replyport;
|
||||
msg.Read<int32>(&replyport);
|
||||
|
Loading…
Reference in New Issue
Block a user