mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-19 13:37:54 +00:00
gfxterm: fix calculation of terminal-top and terminal-height
They used screen width, not height.
This commit is contained in:
parent
c899d9f42c
commit
5646e03dba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user