Fix bad submenu hilight

This commit is contained in:
K. Lange 2018-08-02 04:06:37 +09:00
parent be7d961ee7
commit ee03956a86

View File

@ -129,7 +129,7 @@ void _menu_draw_MenuEntry_Submenu(gfx_context_t * ctx, struct MenuEntry * self,
struct MenuEntry_Submenu * _self = (struct MenuEntry_Submenu *)self; struct MenuEntry_Submenu * _self = (struct MenuEntry_Submenu *)self;
int h = _self->hilight; int h = _self->hilight;
if (_self->_owner && _self->_owner->child == _self->_my_child) { if (_self->_owner && _self->_my_child && _self->_owner->child == _self->_my_child) {
_self->hilight = 1; _self->hilight = 1;
} }
_menu_draw_MenuEntry_Normal(ctx,self,offset); _menu_draw_MenuEntry_Normal(ctx,self,offset);