mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
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:
parent
f533ee3769
commit
7844c8159f
@ -119,7 +119,8 @@ static void ButtonWidget_Render(void* widget, double delta) {
|
|||||||
back.X = w->x; back.Width = w->width;
|
back.X = w->x; back.Width = w->width;
|
||||||
back.Y = w->y; back.Height = w->height;
|
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 */
|
/* Button can be drawn normally */
|
||||||
Texture_Render(&back);
|
Texture_Render(&back);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user