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@gmail.com>
This commit is contained in:
X512 2020-06-28 21:19:52 +09:00 committed by waddlesplash
parent 445f9c6c92
commit 213e62a7a0

View File

@ -377,5 +377,6 @@ MouseView::_CreateButtonsPicture()
FillShape(&mouseShape, B_SOLID_HIGH);
EndPicture();
SetOrigin(0, 0);
SetScale(1);
}