From 5e29b4d947494ac6617057b9186277a24945a225 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 25 Dec 2021 06:42:56 +0200 Subject: SDL line drawing regression was fixed in 2.0.18 --- src/ui/labelwidget.c | 2 +- src/ui/paint.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) { bottomRight_Rect(frameRect), bottomLeft_Rect(frameRect) }; -#if SDL_VERSION_ATLEAST(2, 0, 16) +#if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16) if (isOpenGLRenderer_Window()) { /* A very curious regression in SDL 2.0.16. */ 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) { { left_Rect(rect), br.y }, { left_Rect(rect), top_Rect(rect) } }; -#if SDL_VERSION_ATLEAST(2, 0, 16) +#if SDL_COMPILEDVERSION == SDL_VERSIONNUM(2, 0, 16) if (isOpenGLRenderer_Window()) { /* A very curious regression in SDL 2.0.16. */ edges[3].y--; -- cgit v1.2.3