* small cleanup in AS_DIRECT_WINDOW_GET_SYNC_DATA
* added handling of AS_DIRECT_WINDOW_SET_FULLSCREEN (returns B_ERROR for now) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9d8ea7e417
commit
9ac741b2d2
@ -950,8 +950,9 @@ fDesktop->LockSingleWindow();
|
||||
case AS_DIRECT_WINDOW_GET_SYNC_DATA:
|
||||
{
|
||||
status_t status = _EnableDirectWindowMode();
|
||||
|
||||
fLink.StartMessage(status);
|
||||
if (status == B_OK) {
|
||||
fLink.StartMessage(B_OK);
|
||||
struct direct_window_sync_data syncData = {
|
||||
fDirectWindowData->area,
|
||||
fDirectWindowData->sem,
|
||||
@ -959,12 +960,21 @@ fDesktop->LockSingleWindow();
|
||||
};
|
||||
|
||||
fLink.Attach(&syncData, sizeof(syncData));
|
||||
} else
|
||||
fLink.StartMessage(status);
|
||||
}
|
||||
|
||||
fLink.Flush();
|
||||
break;
|
||||
}
|
||||
case AS_DIRECT_WINDOW_SET_FULLSCREEN:
|
||||
{
|
||||
bool enable;
|
||||
link.Read<bool>(&enable);
|
||||
|
||||
fLink.StartMessage(B_ERROR);
|
||||
fLink.Flush();
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// View creation and destruction (don't need a valid fCurrentLayer)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user