From 1f8ea6a98d49a9e4bfa86d73205f46080a18a532 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 6 Aug 2007 11:41:18 +0000 Subject: [PATCH] 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 --- src/servers/app/ServerWindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 4ba6abe6dc..01065b6483 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -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); } }