[haiku-commits] Change in haiku[master]: app_server: match behavior when drawing to BPicture

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 7 Jun 2020 14:56:43 +0000

From X512 <danger_mail@xxxxxxx>:

X512 has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/2892 ;)


Change subject: app_server: match behavior when drawing to BPicture
......................................................................

app_server: match behavior when drawing to BPicture

Change-Id: I7676e73bda0eb02a1905888706aab6bb1db401d5
---
M src/servers/app/ServerWindow.cpp
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/92/2892/1

diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp
index a4872ee..b21dd70 100644
--- a/src/servers/app/ServerWindow.cpp
+++ b/src/servers/app/ServerWindow.cpp
@@ -3245,6 +3245,7 @@
                        link.Read<float>(&x);
                        link.Read<float>(&y);

+                       fCurrentView->SetDrawingOrigin(BPoint(x, y));
                        picture->WriteSetOrigin(BPoint(x, y));
                        break;
                }
@@ -3259,12 +3260,14 @@

                case AS_VIEW_PUSH_STATE:
                {
+                       fCurrentView->PushState();
                        picture->WritePushState();
                        break;
                }

                case AS_VIEW_POP_STATE:
                {
+                       fCurrentView->PopState();
                        picture->WritePopState();
                        break;
                }

--
To view, visit https://review.haiku-os.org/c/haiku/+/2892
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I7676e73bda0eb02a1905888706aab6bb1db401d5
Gerrit-Change-Number: 2892
Gerrit-PatchSet: 1
Gerrit-Owner: X512 <danger_mail@xxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: app_server: match behavior when drawing to BPicture - Gerrit