X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=menu.c;h=1b429c8e65a686e4e0e1f483883cc0236e4747b8;hb=3e1124f989febba80ef582c1200153ed176226f0;hp=b2ab30e943c67f761969704ee79c0e871206b514;hpb=f89d84717ae3536779f04cdfb57cf940d2bd8ade;p=libpicofe.git diff --git a/menu.c b/menu.c index b2ab30e..1b429c8 100644 --- a/menu.c +++ b/menu.c @@ -38,7 +38,7 @@ int g_menuscreen_h; #endif static unsigned char *menu_font_data = NULL; -static int menu_text_color = 0xffff; // default to white +static int menu_text_color = 0xfffe; // default to white static int menu_sel_color = -1; // disabled /* note: these might become non-constant in future */ @@ -388,7 +388,7 @@ static void menu_darken_text_bg(void) for (x = xmin + 1; x < xmax; x++) { unsigned int p = screen[ls + x]; - if (p != 0xffff) + if (p != menu_text_color) screen[ls + x] = ((p&0xf79e)>>1) - ((p&0xc618)>>3); } screen[ls + xmax] = 0xffff; @@ -632,6 +632,8 @@ static void me_draw(const menu_entry *entries, int sel, void (*draw_more)(void)) y += me_mfont_h; } + menu_separation(); + /* display help or message if we have one */ h = (g_menuscreen_h - h) / 2; // bottom area height if (menu_error_msg[0] != 0) { @@ -1305,7 +1307,7 @@ static void draw_key_config(const me_bind_action *opts, int opt_cnt, int player_ if (dev_id < 0) dev_name = "(all devices)"; else - dev_name = in_get_dev_name(dev_id, 1, 1); + dev_name = in_get_dev_name(dev_id, 0, 1); w = strlen(dev_name) * me_mfont_w; if (w < 30 * me_mfont_w) w = 30 * me_mfont_w; @@ -1368,7 +1370,7 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_ for (i = 0, dev_id--; i < IN_MAX_DEVS + 1; i++, dev_id--) { if (dev_id < -1) dev_id = IN_MAX_DEVS - 1; - if (dev_id == -1 || in_get_dev_name(dev_id, 1, 0) != NULL) + if (dev_id == -1 || in_get_dev_name(dev_id, 0, 0) != NULL) break; } continue; @@ -1376,7 +1378,7 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_ for (i = 0, dev_id++; i < IN_MAX_DEVS; i++, dev_id++) { if (dev_id >= IN_MAX_DEVS) dev_id = -1; - if (dev_id == -1 || in_get_dev_name(dev_id, 1, 0) != NULL) + if (dev_id == -1 || in_get_dev_name(dev_id, 0, 0) != NULL) break; } continue;