]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
gfxterm: fix calculation of terminal-top and terminal-height
authorKonstantin Vlasov <kvlasov@odin.com>
Fri, 13 Nov 2015 18:54:19 +0000 (21:54 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 13 Nov 2015 18:54:19 +0000 (21:54 +0300)
They used screen width, not height.

grub-core/gfxmenu/theme_loader.c

index 1a6ed1d2543d2f1c40e8022b0911635ee852f063..02978392ccc12299f6861b3b8d787ae40c4f67fe 100644 (file)
@@ -255,7 +255,7 @@ theme_set_string (grub_gfxmenu_view_t view,
     {
       unsigned int tmp;
       int err = theme_get_unsigned_int_from_proportional (value,
-                                                          view->screen.width,
+                                                          view->screen.height,
                                                           &tmp);
       if (err != GRUB_ERR_NONE)
         return err;
@@ -275,7 +275,7 @@ theme_set_string (grub_gfxmenu_view_t view,
     {
       unsigned int tmp;
       int err = theme_get_unsigned_int_from_proportional (value,
-                                                          view->screen.width,
+                                                          view->screen.height,
                                                           &tmp);
       if (err != GRUB_ERR_NONE)
         return err;