Explorar el Código

X11TK: Fix build

eafton hace 5 meses
padre
commit
4363582e6d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/video/x11/SDL_x11toolkit.c

+ 2 - 2
src/video/x11/SDL_x11toolkit.c

@@ -342,7 +342,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
                 SDL_free(font);
                 SDL_free(font);
                 
                 
                 if (!window->font_set) {
                 if (!window->font_set) {
-                    if (window->scale && window->iscale > 0) {
+                    if (window->scale != 0 && window->iscale > 0) {
                         window->iscale = (int)SDL_ceilf(window->scale);
                         window->iscale = (int)SDL_ceilf(window->scale);
                         window->scale = 0;
                         window->scale = 0;
                     } else {
                     } else {
@@ -378,7 +378,7 @@ static void X11Toolkit_InitWindowFonts(SDL_ToolkitWindowX11 *window)
         SDL_free(font);
         SDL_free(font);
         if (!window->font_struct) {
         if (!window->font_struct) {
             if (window->iscale > 0) {
             if (window->iscale > 0) {
-                if (window->scale) {
+                if (window->scale != 0) {
                     window->iscale = (int)SDL_ceilf(window->scale);
                     window->iscale = (int)SDL_ceilf(window->scale);
                     window->scale = 0;
                     window->scale = 0;
                 } else {
                 } else {