Don't split buttons down middle when width >= 400 instead of just == 400. Fixes buttons screwing up when on massive DPI screens. (Thanks 123DMWM)

This commit is contained in:
UnknownShadow200 2019-10-19 17:03:50 +11:00
parent f533ee3769
commit 7844c8159f

View File

@ -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 {