mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
7ff17453dd
Fixes a bug due to that f32.Rect.Intersect will not return the empty rectangle for non intersecting rectangles - but instead a swapped rectangle. By removing the .Canon() call in gpu.go we ensure that non overlapping clipping rects and paint rects will lead to no painting. The Canon() call is not needed since boundsForTransformedRect() was previously updated to always return a canonical rectangle. Test case added. Signed-off-by: Viktor <viktor.ogeman@gmail.com>