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:
X512 2020-06-07 23:48:29 +09:00 committed by waddlesplash
parent bbd39960bf
commit 111247c842

View File

@ -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;
}