mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/gfxmenu/gui_list.c (draw_menu): Don't use set in if.
This commit is contained in:
1 parent
e739d69885
commit
9f59e9fc36
2 files changed
+7
-2
No files matched your search
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user