Lagrange [release]

macOS: Workaround for an apparent SDL regression

=> 45eadda0dc5d02b92501887da122ff2c07373237

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) {
     if (br.y == d->dst->size.y) br.y--;
     const SDL_Point edges[] = {
         { left_Rect(rect),  top_Rect(rect) },
-        { br.x, top_Rect(rect) },
-        { br.x, br.y },
+        { br.x,             top_Rect(rect) },
+        { br.x,             br.y },
+#if SDL_VERSION_ATLEAST(2, 0, 16) && defined (iPlatformApple)
+        { left_Rect(rect),  br.y - 1 }, /* regression in SDL 2.0.16? */
+#else
         { left_Rect(rect),  br.y },
+#endif
         { left_Rect(rect),  top_Rect(rect) }
     };
     setColor_Paint_(d, color);
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/release/cdiff/45eadda0dc5d02b92501887da122ff2c07373237
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
29.451324 milliseconds
Gemini-to-HTML Time
0.186541 milliseconds

This content has been proxied by September (3851b).