summaryrefslogtreecommitdiff
path: root/src/ui/labelwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r--src/ui/labelwidget.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index d6cc31cb..edc36a49 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -300,14 +300,15 @@ static void draw_LabelWidget_(const iLabelWidget *d) {
300 bottomLeft_Rect(frameRect), 300 bottomLeft_Rect(frameRect),
301 topLeft_Rect(frameRect), 301 topLeft_Rect(frameRect),
302 topRight_Rect(frameRect), 302 topRight_Rect(frameRect),
303#if SDL_VERSION_ATLEAST(2, 0, 16) && defined (iPlatformApple)
304 /* A very curious regression in SDL 2.0.16 on macOS. */
305 addX_I2(bottomRight_Rect(frameRect), -1),
306#else
307 bottomRight_Rect(frameRect), 303 bottomRight_Rect(frameRect),
308#endif
309 bottomLeft_Rect(frameRect) 304 bottomLeft_Rect(frameRect)
310 }; 305 };
306#if SDL_VERSION_ATLEAST(2, 0, 16)
307 if (isOpenGLRenderer_Window()) {
308 /* A very curious regression in SDL 2.0.16. */
309 points[3].x--;
310 }
311#endif
311 drawLines_Paint(&p, points + 2, 3, frame2); 312 drawLines_Paint(&p, points + 2, 3, frame2);
312 drawLines_Paint( 313 drawLines_Paint(
313 &p, points, !isHover && flags & d->flags.noTopFrame ? 2 : 3, frame); 314 &p, points, !isHover && flags & d->flags.noTopFrame ? 2 : 3, frame);