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
@@ -245,6 +245,7 @@ draw_menu (list_impl_t self, int num_shown_items)
|
||||
visible_index++, menu_index++)
|
||||
{
|
||||
int is_selected = (menu_index == self->view->selected);
|
||||
struct grub_video_bitmap *icon;
|
||||
|
||||
if (is_selected)
|
||||
{
|
||||
@@ -256,8 +257,8 @@ draw_menu (list_impl_t self, int num_shown_items)
|
||||
item_top - sel_toppad);
|
||||
}
|
||||
|
||||
struct grub_video_bitmap *icon;
|
||||
if ((icon = get_item_icon (self, menu_index)) != 0)
|
||||
icon = get_item_icon (self, menu_index);
|
||||
if (icon != 0)
|
||||
grub_video_blit_bitmap (icon, GRUB_VIDEO_BLIT_BLEND,
|
||||
sel_leftpad,
|
||||
item_top + (item_height - self->icon_height) / 2,
|
||||
|
||||
Reference in new issue
Block a user