Apply the same logic of r24682 to the drawing of BPictures inside BPictures. Fixes part of bug #1389 (drawing pictures at an offset). Thanks to Karsten for his observations!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27267 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-01 14:43:25 +00:00
parent 014016620f
commit 52b877461d
1 changed files with 3 additions and 1 deletions

View File

@ -449,8 +449,10 @@ draw_picture(View *view, BPoint where, int32 token)
{ {
ServerPicture *picture = view->Window()->ServerWindow()->App()->FindPicture(token); ServerPicture *picture = view->Window()->ServerWindow()->App()->FindPicture(token);
if (picture != NULL) { if (picture != NULL) {
view->CurrentState()->SetOrigin(where); view->SetDrawingOrigin(where);
view->PushState();
picture->Play(view); picture->Play(view);
view->PopState();
} }
} }