From: Konstantin Vlasov Date: Fri, 13 Nov 2015 18:54:19 +0000 (+0300) Subject: gfxterm: fix calculation of terminal-top and terminal-height X-Git-Tag: 2.02-beta3~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5646e03dbaa63f38488cc76b642458ff696ee687;p=thirdparty%2Fgrub.git gfxterm: fix calculation of terminal-top and terminal-height They used screen width, not height. --- diff --git a/grub-core/gfxmenu/theme_loader.c b/grub-core/gfxmenu/theme_loader.c index 1a6ed1d25..02978392c 100644 --- a/grub-core/gfxmenu/theme_loader.c +++ b/grub-core/gfxmenu/theme_loader.c @@ -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;