]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
use resolution of higher res monitor for window size
authorKayran Schmidt <schmidt.kayran@gmail.com>
Sun, 23 Aug 2020 11:24:48 +0000 (11:24 +0000)
committerKayran Schmidt <schmidt.kayran@gmail.com>
Sun, 23 Aug 2020 11:24:48 +0000 (11:24 +0000)
src/plugins/splash/script/script-lib-sprite.c

index 211fe44729034d96b249ed4f8153e70e4a70cb17..52ba27c3f878a1016417048741692b131c512ce4 100644 (file)
@@ -231,7 +231,7 @@ static script_return_t sprite_window_get_width (script_state_t *state,
                 if (width == 0)
                         width = ply_pixel_display_get_width (display->pixel_display);
                 else
-                        width = MIN (width, ply_pixel_display_get_width (display->pixel_display));
+                        width = MAX (width, ply_pixel_display_get_width (display->pixel_display));
         }
         return script_return_obj (script_obj_new_number (width));
 }
@@ -269,7 +269,7 @@ static script_return_t sprite_window_get_height (script_state_t *state,
                 if (height == 0)
                         height = ply_pixel_display_get_height (display->pixel_display);
                 else
-                        height = MIN (height, ply_pixel_display_get_height (display->pixel_display));
+                        height = MAX (height, ply_pixel_display_get_height (display->pixel_display));
         }
         return script_return_obj (script_obj_new_number (height));
 }