[haiku-commits] haiku: hrev54372 - src/preferences/input

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 28 Jun 2020 17:39:45 -0400 (EDT)

hrev54372 adds 1 changeset to branch 'master'
old head: 445f9c6c923d408ec6c14e56a80d86bedb23e17e
new head: 213e62a7a0afe188660d2d4210e8976f9050c971
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=213e62a7a0af+%5E445f9c6c923d

----------------------------------------------------------------------------

213e62a7a0af: Input: fix MouseView drawing
  
  BeginPicture/EndPicture do not save state so origin should be restored
  after recording picture. BView::Draw use PushState internally so origin
  is added and cause problem.
  
  hrev54347 fixed behavior when recording picture so state change is
  affected. It revealed #16317 bug.
  
  Fixes #16317.
  
  Change-Id: Iee69631ce83fea5ea73c99b492b8cf67d1b148c7
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/2960
  Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>

                                              [ X512 <danger_mail@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54372
Commit:      213e62a7a0afe188660d2d4210e8976f9050c971
URL:         https://git.haiku-os.org/haiku/commit/?id=213e62a7a0af
Author:      X512 <danger_mail@xxxxxxx>
Date:        Sun Jun 28 12:19:52 2020 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sun Jun 28 21:39:42 2020 UTC

Ticket:      https://dev.haiku-os.org/ticket/16317

----------------------------------------------------------------------------

1 file changed, 1 insertion(+)
src/preferences/input/MouseView.cpp | 1 +

----------------------------------------------------------------------------

diff --git a/src/preferences/input/MouseView.cpp 
b/src/preferences/input/MouseView.cpp
index 19db856afe..edef4ab9fb 100644
--- a/src/preferences/input/MouseView.cpp
+++ b/src/preferences/input/MouseView.cpp
@@ -377,5 +377,6 @@ MouseView::_CreateButtonsPicture()
        FillShape(&mouseShape, B_SOLID_HIGH);
 
        EndPicture();
+       SetOrigin(0, 0);
        SetScale(1);
 }


Other related posts:

  • » [haiku-commits] haiku: hrev54372 - src/preferences/input - waddlesplash