summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/paint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/paint.c b/src/ui/paint.c
index 67b509fb..5f19ec3e 100644
--- a/src/ui/paint.c
+++ b/src/ui/paint.c
@@ -77,7 +77,8 @@ void setClip_Paint(iPaint *d, iRect rect) {
77 SDL_QueryTexture(target, NULL, NULL, &targetRect.size.x, &targetRect.size.y); 77 SDL_QueryTexture(target, NULL, NULL, &targetRect.size.x, &targetRect.size.y);
78 rect = intersect_Rect(rect, targetRect); 78 rect = intersect_Rect(rect, targetRect);
79 } 79 }
80 else { 80 /* The origin is non-zero when drawing into a widget's own buffer. */
81 if (isEqual_I2(zero_I2(), origin_Paint)) {
81 rect = intersect_Rect(rect, rect_Root(get_Root())); 82 rect = intersect_Rect(rect, rect_Root(get_Root()));
82 } 83 }
83 if (isEmpty_Rect(rect)) { 84 if (isEmpty_Rect(rect)) {