2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>

* loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
This commit is contained in:
phcoder 2009-10-15 12:40:13 +00:00
parent cd2851b3dd
commit 44998e5893
2 changed files with 31 additions and 23 deletions

View file

@ -1,3 +1,7 @@
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
* loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
* commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise

View file

@ -43,7 +43,6 @@ grub_xnu_set_video (struct grub_xnu_boot_params *params)
{
struct grub_video_mode_info mode_info;
int ret;
int x,y;
char *tmp, *modevar;
void *framebuffer;
grub_err_t err;
@ -66,11 +65,10 @@ grub_xnu_set_video (struct grub_xnu_boot_params *params)
if (err)
return err;
ret = grub_video_get_info_and_fini (&mode_info, &framebuffer);
if (ret)
return grub_error (GRUB_ERR_IO, "couldn't retrieve video parameters");
if (grub_xnu_bitmap)
{
int x, y;
err = GRUB_ERR_NONE;
x = mode_info.width - grub_xnu_bitmap->mode_info.width;
x /= 2;
y = mode_info.height - grub_xnu_bitmap->mode_info.height;
@ -91,6 +89,12 @@ grub_xnu_set_video (struct grub_xnu_boot_params *params)
grub_errno = GRUB_ERR_NONE;
grub_xnu_bitmap = 0;
}
err = GRUB_ERR_NONE;
}
ret = grub_video_get_info_and_fini (&mode_info, &framebuffer);
if (ret)
return grub_error (GRUB_ERR_IO, "couldn't retrieve video parameters");
params->lfb_width = mode_info.width;
params->lfb_height = mode_info.height;