We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc477d commit 4363582Copy full SHA for 4363582
src/video/x11/SDL_x11toolkit.c
@@ -342,7 +342,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
342
SDL_free(font);
343
344
if (!window->font_set) {
345
- if (window->scale && window->iscale > 0) {
+ if (window->scale != 0 && window->iscale > 0) {
346
window->iscale = (int)SDL_ceilf(window->scale);
347
window->scale = 0;
348
} else {
@@ -378,7 +378,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
378
379
if (!window->font_struct) {
380
if (window->iscale > 0) {
381
- if (window->scale) {
+ if (window->scale != 0) {
382
383
384
0 commit comments