app_server: match behavior when drawing to BPicture
Change-Id: I7676e73bda0eb02a1905888706aab6bb1db401d5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2892 Reviewed-by: waddlesplash <[email protected]> Reviewed-by: Axel Dörfler <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
@@ -3223,6 +3223,7 @@ ServerWindow::_DispatchPictureMessage(int32 code, BPrivate::LinkReceiver& link)
|
|||||||
link.Read<float>(&x);
|
link.Read<float>(&x);
|
||||||
link.Read<float>(&y);
|
link.Read<float>(&y);
|
||||||
|
|
||||||
|
fCurrentView->SetDrawingOrigin(BPoint(x, y));
|
||||||
picture->WriteSetOrigin(BPoint(x, y));
|
picture->WriteSetOrigin(BPoint(x, y));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -3237,12 +3238,14 @@ ServerWindow::_DispatchPictureMessage(int32 code, BPrivate::LinkReceiver& link)
|
|||||||
|
|
||||||
case AS_VIEW_PUSH_STATE:
|
case AS_VIEW_PUSH_STATE:
|
||||||
{
|
{
|
||||||
|
fCurrentView->PushState();
|
||||||
picture->WritePushState();
|
picture->WritePushState();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case AS_VIEW_POP_STATE:
|
case AS_VIEW_POP_STATE:
|
||||||
{
|
{
|
||||||
|
fCurrentView->PopState();
|
||||||
picture->WritePopState();
|
picture->WritePopState();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user