From 032a8371aa11c42e08bf13c7efe22718cc34bc18 Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Fri, 6 Aug 2010 18:24:48 +0000 Subject: [PATCH] As per Stephans request re-added comment that I removed in r37939. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37944 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index b111791d48..8bf00290c6 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -2783,6 +2783,9 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code, if (link.Read(&where) == B_OK) { ServerPicture* picture = App()->GetPicture(token); if (picture != NULL) { + // Setting the drawing origin outside of the + // state makes sure that everything the picture + // does is relative to the global picture offset. fCurrentView->PushState(); fCurrentView->SetDrawingOrigin(where);