\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
* Dzz for his ARM940 sample code.\r
* GnoStiC & Puck2099 for USB joystick support.\r
* Hermes PS2R, god_at_hell for the CpuCtrl library.\r
+* A_SN for his gamma code.\r
* craigix for supplying the GP2X hardware and making this port possible.\r
* Alex for the icon.\r
+* ketchupgun for the skin.\r
+* All the people from gp32x boards for their support.\r
\r
Symbian:\r
* Peter van Sebille for his various open-source Symbian projects to learn from.\r
* Changed key configuration behaviour to the one from gpfce (should be more\r
intuitive).\r
+ Added some skinning capabilities to the menu system with default skin by\r
- ketch. Delete skin directory if you want old behaviour.\r
+ ketchupgun. Delete skin directory if you want old behaviour.\r
\r
1.32\r
+ Added some new scaling options.\r