From 7844c8159f6d07f04c1dbf1a362a77e057ef4a47 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 19 Oct 2019 17:03:50 +1100 Subject: [PATCH] Don't split buttons down middle when width >= 400 instead of just == 400. Fixes buttons screwing up when on massive DPI screens. (Thanks 123DMWM) --- src/Widgets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Widgets.c b/src/Widgets.c index 623367c7e..752373acd 100644 --- a/src/Widgets.c +++ b/src/Widgets.c @@ -119,7 +119,8 @@ static void ButtonWidget_Render(void* widget, double delta) { back.X = w->x; back.Width = w->width; back.Y = w->y; back.Height = w->height; - if (w->width == 400) { + /* TODO: Does this 400 need to take DPI into account */ + if (w->width >= 400) { /* Button can be drawn normally */ Texture_Render(&back); } else {