summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorlawnjelly <lawnjelly@gmail.com>2021-05-28 09:04:24 +0100
committerlawnjelly <lawnjelly@gmail.com>2021-05-28 09:04:24 +0100
commit07ca9cd263324d80d53841465318f734f41156c1 (patch)
tree6e7c7acd2cb8a45e614a0710705669ab9edfa00e /servers/rendering
parent364ea7f280a3f074795e542b16b1d0ec76cf6ce2 (diff)
[4] Fix canvas rect bound calculation
It turns out the calculation of the bounding rect for canvas items has a nasty bug. When a transform is applied (especially in a custom draw), in the renderer this extra matrix is applied to all later commands in the canvas item. However in the calculation of the bound, the transform is only applied to the first command following the transform. This PR fixes this inconsistency.
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/renderer_canvas_render.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/servers/rendering/renderer_canvas_render.h b/servers/rendering/renderer_canvas_render.h
index 0e9ef616cb..0266e137c0 100644
--- a/servers/rendering/renderer_canvas_render.h
+++ b/servers/rendering/renderer_canvas_render.h
@@ -420,7 +420,6 @@ public:
if (found_xform) {
r = xf.xform(r);
- found_xform = false;
}
if (first) {