\r
char menuErrorMsg[40] = {0, };\r
\r
-static void menu_darken_bg(void *dst, int pixels);\r
+static void menu_darken_bg(void *dst, int pixels, int darker);\r
static void menu_prepare_bg(int use_game_bg);\r
\r
// draws text to current bbp16 screen\r
start = 12 - sel;\r
n--; // exclude current dir (".")\r
\r
- if (rom_data)\r
- gp2x_pd_clone_buffer2();\r
- else {\r
- memset(gp2x_screen, 0, 320*240*2);\r
- memset((char *)gp2x_screen + 320*120*2, 0xff, 320*8*2);\r
+ gp2x_pd_clone_buffer2();\r
+\r
+ if (rom_data == NULL) {\r
+ menu_darken_bg(gp2x_screen, 320*240, 0);\r
}\r
\r
- menu_darken_bg((char *)gp2x_screen + 320*120*2, 320*8);\r
+ menu_darken_bg((char *)gp2x_screen + 320*120*2, 320*8, 0);\r
\r
if(start - 2 >= 0)\r
smalltext_out16_lim(14, (start - 2)*10, curdir, 0xffff, 53-2);\r
text_out16(tl_x, (y+=10), "Dzz: ARM940 sample");\r
text_out16(tl_x, (y+=10), "GnoStiC / Puck2099: USB joystick");\r
text_out16(tl_x, (y+=10), "craigix: GP2X hardware");\r
- text_out16(tl_x, (y+=10), "ketch: skin design");\r
+ text_out16(tl_x, (y+=10), "ketchupgun: skin design");\r
\r
menu_flip();\r
}\r
}\r
}\r
\r
-static void menu_darken_bg(void *dst, int pixels)\r
+static void menu_darken_bg(void *dst, int pixels, int darker)\r
{\r
unsigned int *screen = dst;\r
pixels /= 2;\r
- while (pixels--)\r
+ if (darker)\r
{\r
- unsigned int p = *screen;\r
- *screen = ((p&0xf79ef79e)>>1) - ((p&0xc618c618)>>3);\r
- screen++;\r
+ while (pixels--)\r
+ {\r
+ unsigned int p = *screen;\r
+ *screen++ = ((p&0xf79ef79e)>>1) - ((p&0xc618c618)>>3);\r
+ }\r
+ }\r
+ else\r
+ {\r
+ while (pixels--)\r
+ {\r
+ unsigned int p = *screen;\r
+ *screen++ = (p&0xf79ef79e)>>1;\r
+ }\r
}\r
}\r
\r
{\r
// darken the active framebuffer\r
memset(gp2x_screen, 0, 320*8*2);\r
- menu_darken_bg((char *)gp2x_screen + 320*8*2, 320*224);\r
+ menu_darken_bg((char *)gp2x_screen + 320*8*2, 320*224, 1);\r
memset((char *)gp2x_screen + 320*232*2, 0, 320*8*2);\r
}\r
else\r