summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/labelwidget.c2
-rw-r--r--src/ui/paint.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c
index 4dd66a28..1ff6d3b7 100644
--- a/src/ui/labelwidget.c
+++ b/src/ui/labelwidget.c
@@ -347,7 +347,7 @@ static void draw_LabelWidget_(const iLabelWidget *d) {
347 bottomRight_Rect(frameRect), 347 bottomRight_Rect(frameRect),
348 bottomLeft_Rect(frameRect) 348 bottomLeft_Rect(frameRect)
349 }; 349 };
350#if SDL_VERSION_ATLEAST(2, 0, 16) 350#if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16)
351 if (isOpenGLRenderer_Window()) { 351 if (isOpenGLRenderer_Window()) {
352 /* A very curious regression in SDL 2.0.16. */ 352 /* A very curious regression in SDL 2.0.16. */
353 points[3].x--; 353 points[3].x--;
diff --git a/src/ui/paint.c b/src/ui/paint.c
index b92be27e..a91c6f12 100644
--- a/src/ui/paint.c
+++ b/src/ui/paint.c
@@ -108,7 +108,7 @@ void drawRect_Paint(const iPaint *d, iRect rect, int color) {
108 { left_Rect(rect), br.y }, 108 { left_Rect(rect), br.y },
109 { left_Rect(rect), top_Rect(rect) } 109 { left_Rect(rect), top_Rect(rect) }
110 }; 110 };
111#if SDL_VERSION_ATLEAST(2, 0, 16) 111#if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16)
112 if (isOpenGLRenderer_Window()) { 112 if (isOpenGLRenderer_Window()) {
113 /* A very curious regression in SDL 2.0.16. */ 113 /* A very curious regression in SDL 2.0.16. */
114 edges[3].y--; 114 edges[3].y--;