Set the origin before playing the picture, so DrawPicture() with an
offset works correctly. Drawing a BShape using a BPicture is currently broken. Stephan, any insight on what it's changed about shape drawing ? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21835 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fe80954c2d
commit
1f8ea6a98d
@ -2340,9 +2340,7 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code, BPrivate::LinkReceiver &li
|
||||
|
||||
ServerPicture *picture = App()->FindPicture(token);
|
||||
if (picture != NULL) {
|
||||
fCurrentLayer->ConvertToScreenForDrawing(&where);
|
||||
fCurrentLayer->CurrentState()->SetPenLocation(where);
|
||||
// TODO: pass the location to the play method and handle it there
|
||||
fCurrentLayer->CurrentState()->SetOrigin(where);
|
||||
picture->Play(fCurrentLayer);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user