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:
Fabio Priuli 2012-05-26 17:15:42 +00:00
parent 35bed5a154
commit 27e0aec6da

View File

@ -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;