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