X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=menu.c;h=640f9b78ba57f5ab2179fddcabbc3d62d0fac55d;hb=7b0a298567dcd67b1efde214b24a18d83b8be1d1;hp=b2ab30e943c67f761969704ee79c0e871206b514;hpb=a085ae5ef139fca7910f70994c65f7a48769dfe1;p=libpicofe.git diff --git a/menu.c b/menu.c index b2ab30e..640f9b7 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) {