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:
X512
2025-10-06 15:10:16 +00:00
committed by waddlesplash
parent 1e76bade06
commit 5247c8c14f
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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);
+2
View File
@@ -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;