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:
@@ -2340,9 +2340,7 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code, BPrivate::LinkReceiver &li
|
|||||||
|
|
||||||
ServerPicture *picture = App()->FindPicture(token);
|
ServerPicture *picture = App()->FindPicture(token);
|
||||||
if (picture != NULL) {
|
if (picture != NULL) {
|
||||||
fCurrentLayer->ConvertToScreenForDrawing(&where);
|
fCurrentLayer->CurrentState()->SetOrigin(where);
|
||||||
fCurrentLayer->CurrentState()->SetPenLocation(where);
|
|
||||||
// TODO: pass the location to the play method and handle it there
|
|
||||||
picture->Play(fCurrentLayer);
|
picture->Play(fCurrentLayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user