summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-25 06:42:56 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-04 11:02:21 +0200
commit5e29b4d947494ac6617057b9186277a24945a225 (patch)
tree42f9cdb4612791a2e3b006f6174570aa3e23cd43
parent81610dc712d004e81f9bbf1feaf6433a09f56e3a (diff)
SDL line drawing regression was fixed in 2.0.18
-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--;