diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-15 07:45:49 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-15 07:45:49 +0300 |
commit | 6a99b9b889eb949e029506b3e85e0126edfe60d7 (patch) | |
tree | 5d275a2e663860049c3fb7a65dd87968fc616c77 /src/ui/paint.c | |
parent | c5aed300076879c70a9af606ae78f67c5845dd3e (diff) | |
parent | d8a3a1ee93d3b6dd2235e1ac5d563240326d6d0f (diff) |
Merge branch 'dev' of skyjake.fi:gemini/lagrange into dev
Diffstat (limited to 'src/ui/paint.c')
-rw-r--r-- | src/ui/paint.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/paint.c b/src/ui/paint.c index c575d5fc..869238d5 100644 --- a/src/ui/paint.c +++ b/src/ui/paint.c | |||
@@ -91,9 +91,13 @@ void drawRect_Paint(const iPaint *d, iRect rect, int color) { | |||
91 | if (br.y == d->dst->size.y) br.y--; | 91 | if (br.y == d->dst->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) }, |
95 | { br.x, br.y }, | 95 | { br.x, br.y }, |
96 | #if SDL_VERSION_ATLEAST(2, 0, 16) && defined (iPlatformApple) | ||
97 | { left_Rect(rect), br.y - 1 }, /* regression in SDL 2.0.16? */ | ||
98 | #else | ||
96 | { left_Rect(rect), br.y }, | 99 | { left_Rect(rect), br.y }, |
100 | #endif | ||
97 | { left_Rect(rect), top_Rect(rect) } | 101 | { left_Rect(rect), top_Rect(rect) } |
98 | }; | 102 | }; |
99 | setColor_Paint_(d, color); | 103 | setColor_Paint_(d, color); |