const char *ext;\r
int i;\r
\r
- if (ent == NULL || ent->d_name == NULL)\r
+ if (ent == NULL)\r
return 0;\r
\r
switch (ent->d_type) {\r
y = (g_menuscreen_h - 4 * me_mfont_h) / 2 - (2 + opt_cnt) * me_mfont_h / 2;\r
if (x < me_mfont_w * 2)\r
x = me_mfont_w * 2;\r
-\r
+ if (y < 0)\r
+ y = 0;\r
menu_draw_begin(1, 0);\r
if (player_idx >= 0)\r
text_out16(x, y, "Player %i controls", player_idx + 1);\r
in_unbind_all(bind_dev_id, opts[sel].mask << mask_shift, bindtype);\r
\r
in_bind_key(bind_dev_id, kc, opts[sel].mask << mask_shift, bindtype, 0);\r
+\r
+ // make sure bind change is displayed\r
+ if (dev_id != -1)\r
+ dev_id = bind_dev_id;\r
}\r
}\r
\r