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:
parent
cd2851b3dd
commit
44998e5893
2 changed files with 31 additions and 23 deletions
|
@ -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>
|
2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
|
* commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
|
||||||
|
|
|
@ -43,7 +43,6 @@ grub_xnu_set_video (struct grub_xnu_boot_params *params)
|
||||||
{
|
{
|
||||||
struct grub_video_mode_info mode_info;
|
struct grub_video_mode_info mode_info;
|
||||||
int ret;
|
int ret;
|
||||||
int x,y;
|
|
||||||
char *tmp, *modevar;
|
char *tmp, *modevar;
|
||||||
void *framebuffer;
|
void *framebuffer;
|
||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
|
@ -66,11 +65,10 @@ grub_xnu_set_video (struct grub_xnu_boot_params *params)
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
ret = grub_video_get_info_and_fini (&mode_info, &framebuffer);
|
if (grub_xnu_bitmap)
|
||||||
if (ret)
|
{
|
||||||
return grub_error (GRUB_ERR_IO, "couldn't retrieve video parameters");
|
int x, y;
|
||||||
|
|
||||||
err = GRUB_ERR_NONE;
|
|
||||||
x = mode_info.width - grub_xnu_bitmap->mode_info.width;
|
x = mode_info.width - grub_xnu_bitmap->mode_info.width;
|
||||||
x /= 2;
|
x /= 2;
|
||||||
y = mode_info.height - grub_xnu_bitmap->mode_info.height;
|
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_errno = GRUB_ERR_NONE;
|
||||||
grub_xnu_bitmap = 0;
|
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_width = mode_info.width;
|
||||||
params->lfb_height = mode_info.height;
|
params->lfb_height = mode_info.height;
|
||||||
|
|
Loading…
Reference in a new issue