mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
uimain.c: if a game has no diplocations, don't draw an empty box in the dipswitch menu. no whatsnew.
This commit is contained in:
parent
35bed5a154
commit
27e0aec6da
@ -1182,6 +1182,9 @@ void ui_menu_settings_dip_switches::custom_render(void *selectedref, float top,
|
||||
ioport_field *field = (ioport_field *)selectedref;
|
||||
dip_descriptor *dip;
|
||||
|
||||
if (field->first_diplocation() == NULL)
|
||||
return;
|
||||
|
||||
/* add borders */
|
||||
y1 = y2 + UI_BOX_TB_BORDER;
|
||||
y2 = y1 + bottom;
|
||||
|
Loading…
Reference in New Issue
Block a user