Finally tested the code, there were a bunch of problems: fixed them all.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12518 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -267,7 +267,12 @@ BPrivateScreen::GetMode(uint32 workspace, display_mode *mode)
|
|||||||
link.StartMessage(AS_SCREEN_GET_MODE);
|
link.StartMessage(AS_SCREEN_GET_MODE);
|
||||||
link.Attach<screen_id>(ID());
|
link.Attach<screen_id>(ID());
|
||||||
link.Attach<uint32>(workspace);
|
link.Attach<uint32>(workspace);
|
||||||
link.Flush();
|
|
||||||
|
int32 code = SERVER_FALSE;
|
||||||
|
link.FlushWithReply(&code);
|
||||||
|
|
||||||
|
if (code != SERVER_TRUE)
|
||||||
|
return B_ERROR;
|
||||||
|
|
||||||
display_mode currentMode;
|
display_mode currentMode;
|
||||||
link.Read<display_mode>(¤tMode);
|
link.Read<display_mode>(¤tMode);
|
||||||
|
|||||||
Reference in New Issue
Block a user