Skip to content

Commit 4363582

Browse files
eaftonslouken
authored andcommitted
X11TK: Fix build
1 parent 7cc477d commit 4363582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/video/x11/SDL_x11toolkit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
342342
SDL_free(font);
343343

344344
if (!window->font_set) {
345-
if (window->scale && window->iscale > 0) {
345+
if (window->scale != 0 && window->iscale > 0) {
346346
window->iscale = (int)SDL_ceilf(window->scale);
347347
window->scale = 0;
348348
} else {
@@ -378,7 +378,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
378378
SDL_free(font);
379379
if (!window->font_struct) {
380380
if (window->iscale > 0) {
381-
if (window->scale) {
381+
if (window->scale != 0) {
382382
window->iscale = (int)SDL_ceilf(window->scale);
383383
window->scale = 0;
384384
} else {

0 commit comments

Comments
 (0)