ControlLook: fix clipping

Remove ConstrainClippingRegion calls as they do not take into
account view transformations.
Clip drawing to the drawing rect, not the updated area.

Fixes #12890

Change-Id: Ie76cb83e0af03213008da78407de25261daea5df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4457
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Máximo Castañeda
2023-04-26 10:41:04 +00:00
committed by Adrien Destugues
parent af3dceb279
commit e6a598a2f4
3 changed files with 178 additions and 122 deletions
+3
View File
@@ -430,6 +430,9 @@ public:
virtual float GetScrollBarWidth(
orientation orientation = B_VERTICAL);
static bool ShouldDraw(BView* view, const BRect& rect,
const BRect& updateRect);
private:
// FBC padding
virtual void _ReservedControlLook6();