diff options
Diffstat (limited to 'src/ui/paint.c')
-rw-r--r-- | src/ui/paint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/paint.c b/src/ui/paint.c index 857bf20c..02914489 100644 --- a/src/ui/paint.c +++ b/src/ui/paint.c | |||
@@ -87,8 +87,8 @@ void unsetClip_Paint(iPaint *d) { | |||
87 | void drawRect_Paint(const iPaint *d, iRect rect, int color) { | 87 | void drawRect_Paint(const iPaint *d, iRect rect, int color) { |
88 | iInt2 br = bottomRight_Rect(rect); | 88 | iInt2 br = bottomRight_Rect(rect); |
89 | /* Keep the right/bottom edge visible in the window. */ | 89 | /* Keep the right/bottom edge visible in the window. */ |
90 | if (br.x == d->dst->root->rect.size.x) br.x--; | 90 | if (br.x == d->dst->root.widget->rect.size.x) br.x--; |
91 | if (br.y == d->dst->root->rect.size.y) br.y--; | 91 | if (br.y == d->dst->root.widget->rect.size.y) br.y--; |
92 | const SDL_Point edges[] = { | 92 | const SDL_Point edges[] = { |
93 | { left_Rect(rect), top_Rect(rect) }, | 93 | { left_Rect(rect), top_Rect(rect) }, |
94 | { br.x, top_Rect(rect) }, | 94 | { br.x, top_Rect(rect) }, |