* grub-core/gfxmenu/gui_list.c (draw_menu): Don't use set in if.
This commit is contained in:
parent
e739d69885
commit
9f59e9fc36
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/gfxmenu/gui_list.c (draw_menu): Don't use set in if.
|
||||||
|
|
||||||
2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
|
* include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
|
||||||
|
|
|
@ -245,6 +245,7 @@ draw_menu (list_impl_t self, int num_shown_items)
|
||||||
visible_index++, menu_index++)
|
visible_index++, menu_index++)
|
||||||
{
|
{
|
||||||
int is_selected = (menu_index == self->view->selected);
|
int is_selected = (menu_index == self->view->selected);
|
||||||
|
struct grub_video_bitmap *icon;
|
||||||
|
|
||||||
if (is_selected)
|
if (is_selected)
|
||||||
{
|
{
|
||||||
|
@ -256,8 +257,8 @@ draw_menu (list_impl_t self, int num_shown_items)
|
||||||
item_top - sel_toppad);
|
item_top - sel_toppad);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct grub_video_bitmap *icon;
|
icon = get_item_icon (self, menu_index);
|
||||||
if ((icon = get_item_icon (self, menu_index)) != 0)
|
if (icon != 0)
|
||||||
grub_video_blit_bitmap (icon, GRUB_VIDEO_BLIT_BLEND,
|
grub_video_blit_bitmap (icon, GRUB_VIDEO_BLIT_BLEND,
|
||||||
sel_leftpad,
|
sel_leftpad,
|
||||||
item_top + (item_height - self->icon_height) / 2,
|
item_top + (item_height - self->icon_height) / 2,
|
||||||
|
|
Loading…
Reference in a new issue