2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
Fixes problem when running vbetest command as reported by Vladimir Serbinenko <phcoder@gmail.com>. * (grub_vbe_set_video_mode): Fixed problem with text modes.
This commit is contained in:
parent
3143cc1c5f
commit
38a0f8e7b5
2 changed files with 45 additions and 25 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
|
||||
|
||||
Fixes problem when running vbetest command as reported by
|
||||
Vladimir Serbinenko <phcoder@gmail.com>.
|
||||
|
||||
* (grub_vbe_set_video_mode): Fixed problem with text modes.
|
||||
|
||||
2009-02-04 Felix Zielcke <fzielcke@z-51.de>
|
||||
|
||||
util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
|
||||
|
|
|
@ -206,6 +206,18 @@ grub_vbe_set_video_mode (grub_uint32_t mode,
|
|||
framebuffer.bytes_per_scan_line = active_mode_info.bytes_per_scan_line;
|
||||
}
|
||||
|
||||
/* Check whether mode is text mode or graphics mode. */
|
||||
if (active_mode_info.memory_model == GRUB_VBE_MEMORY_MODEL_TEXT)
|
||||
{
|
||||
/* Text mode. */
|
||||
|
||||
/* No special action needed for text mode as it is not supported for
|
||||
graphical support. */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Graphics mode. */
|
||||
|
||||
/* Calculate bytes_per_pixel value. */
|
||||
switch(active_mode_info.bits_per_pixel)
|
||||
{
|
||||
|
@ -237,6 +249,7 @@ grub_vbe_set_video_mode (grub_uint32_t mode,
|
|||
|
||||
/* Just ignore the status. */
|
||||
}
|
||||
}
|
||||
|
||||
/* Copy mode info for caller. */
|
||||
if (mode_info)
|
||||
|
|
Loading…
Reference in a new issue