diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 06:42:56 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-25 06:42:56 +0200 |
commit | e6a1ff50654f251d6f7b495e46d78d48a0f2a754 (patch) | |
tree | 0e0e45a486ef1521b4345197af1e6311ae82584a /src | |
parent | f4650ecca043b630259470f34deed100b66929c6 (diff) |
SDL line drawing regression was fixed in 2.0.18
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/labelwidget.c | 2 | ||||
-rw-r--r-- | src/ui/paint.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 4ace6204..446cdc8a 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -349,7 +349,7 @@ static void draw_LabelWidget_(const iLabelWidget *d) { | |||
349 | bottomRight_Rect(frameRect), | 349 | bottomRight_Rect(frameRect), |
350 | bottomLeft_Rect(frameRect) | 350 | bottomLeft_Rect(frameRect) |
351 | }; | 351 | }; |
352 | #if SDL_VERSION_ATLEAST(2, 0, 16) | 352 | #if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16) |
353 | if (isOpenGLRenderer_Window()) { | 353 | if (isOpenGLRenderer_Window()) { |
354 | /* A very curious regression in SDL 2.0.16. */ | 354 | /* A very curious regression in SDL 2.0.16. */ |
355 | points[3].x--; | 355 | points[3].x--; |
diff --git a/src/ui/paint.c b/src/ui/paint.c index 439bdd37..c3b22343 100644 --- a/src/ui/paint.c +++ b/src/ui/paint.c | |||
@@ -113,7 +113,7 @@ void drawRect_Paint(const iPaint *d, iRect rect, int color) { | |||
113 | { left_Rect(rect), br.y }, | 113 | { left_Rect(rect), br.y }, |
114 | { left_Rect(rect), top_Rect(rect) } | 114 | { left_Rect(rect), top_Rect(rect) } |
115 | }; | 115 | }; |
116 | #if SDL_VERSION_ATLEAST(2, 0, 16) | 116 | #if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16) |
117 | if (isOpenGLRenderer_Window()) { | 117 | if (isOpenGLRenderer_Window()) { |
118 | /* A very curious regression in SDL 2.0.16. */ | 118 | /* A very curious regression in SDL 2.0.16. */ |
119 | edges[3].y--; | 119 | edges[3].y--; |