app_server: add screen ID for BScreen::ReadBitmap
For consistency and future multiple screen support. Change-Id: I65363a0476d6244dfc9d2a3f26546fc43a9394f0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9679 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -377,6 +377,7 @@ BPrivateScreen::ReadBitmap(BBitmap* bitmap, bool drawCursor, BRect* bounds)
|
||||
|
||||
BPrivate::AppServerLink link;
|
||||
link.StartMessage(AS_READ_BITMAP);
|
||||
link.Attach<int32>(ID());
|
||||
link.Attach<int32>(bitmap->_ServerToken());
|
||||
link.Attach<bool>(drawCursor);
|
||||
link.Attach<BRect>(rect);
|
||||
|
||||
@@ -3423,7 +3423,9 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver& link)
|
||||
case AS_READ_BITMAP:
|
||||
{
|
||||
STRACE(("ServerApp %s: AS_READ_BITMAP\n", Signature()));
|
||||
int32 id;
|
||||
int32 token;
|
||||
link.Read<int32>(&id);
|
||||
link.Read<int32>(&token);
|
||||
|
||||
bool drawCursor = true;
|
||||
|
||||
Reference in New Issue
Block a user