- gp2x_text(gp2x_screen,x,y,buffer,1);\r
+ gp2x_text(gp2x_screen,x,y,buffer,0xf0);\r
- gp2x_text(gp2x_screen,x,y,buffer,1);\r
+ gp2x_text(gp2x_screen,x,y,buffer,0xf0);\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
\r
if(start - 2 >= 0)\r
gp2x_text_out8_lim(14, (start - 2)*10, curdir, 38);\r
\r
if(start - 2 >= 0)\r
gp2x_text_out8_lim(14, (start - 2)*10, curdir, 38);\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
gp2x_text_out8(60, 40, "Action: %s", actionNames[curr_act]);\r
gp2x_text_out8(60, 60, "Keys: %s", strkeys);\r
\r
gp2x_text_out8(60, 40, "Action: %s", actionNames[curr_act]);\r
gp2x_text_out8(60, 60, "Keys: %s", strkeys);\r
\r
gp2x_text_out8(30, 190, "Press a key to bind/unbind");\r
gp2x_text_out8(30, 200, "Select \"Done\" action and");\r
gp2x_text_out8(30, 210, " press any key to finish");\r
gp2x_text_out8(30, 190, "Press a key to bind/unbind");\r
gp2x_text_out8(30, 200, "Select \"Done\" action and");\r
gp2x_text_out8(30, 210, " press any key to finish");\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
gp2x_text_out8(tl_x, y, "Player 1");\r
gp2x_text_out8(tl_x, (y+=10), "Player 2");\r
gp2x_text_out8(tl_x, (y+=10), "Done");\r
gp2x_text_out8(tl_x, y, "Player 1");\r
gp2x_text_out8(tl_x, (y+=10), "Player 2");\r
gp2x_text_out8(tl_x, (y+=10), "Done");\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
+\r
gp2x_text_out8(tl_x, y, "USA BIOS: %s", b_us); // 0\r
gp2x_text_out8(tl_x, (y+=10), "EUR BIOS: %s", b_eu); // 1\r
gp2x_text_out8(tl_x, (y+=10), "JAP BIOS: %s", b_jp); // 2\r
gp2x_text_out8(tl_x, (y+=10), "CD LEDs %s", (currentConfig.EmuOpt &0x400)?"ON":"OFF"); // 3\r
gp2x_text_out8(tl_x, y, "USA BIOS: %s", b_us); // 0\r
gp2x_text_out8(tl_x, (y+=10), "EUR BIOS: %s", b_eu); // 1\r
gp2x_text_out8(tl_x, (y+=10), "JAP BIOS: %s", b_jp); // 2\r
gp2x_text_out8(tl_x, (y+=10), "CD LEDs %s", (currentConfig.EmuOpt &0x400)?"ON":"OFF"); // 3\r
- gp2x_text_out8(tl_x, (y+=10), "CDDA audio (using mp3s) %s", (currentConfig.EmuOpt &0x800)?"ON":"OFF"); // 4\r
+ gp2x_text_out8(tl_x, (y+=10), "CDDA audio (using mp3s) %s", (currentConfig.PicoOpt&0x800)?"ON":"OFF"); // 4\r
+ gp2x_text_out8(tl_x, (y+=10), "PCM audio %s", (currentConfig.PicoOpt&0x400)?"ON":"OFF"); // 5\r
(menu_sel == 2 && strcmp(b_jp, "NOT FOUND")))\r
gp2x_text_out8(tl_x, 220, "Press start to test selected BIOS");\r
\r
(menu_sel == 2 && strcmp(b_jp, "NOT FOUND")))\r
gp2x_text_out8(tl_x, 220, "Press start to test selected BIOS");\r
\r
unsigned long inp = 0;\r
char bios_us[32], bios_eu[32], bios_jp[32], *bios, *p;\r
\r
unsigned long inp = 0;\r
char bios_us[32], bios_eu[32], bios_jp[32], *bios, *p;\r
\r
if((inp& GP2X_B)||(inp&GP2X_LEFT)||(inp&GP2X_RIGHT)) { // toggleable options\r
switch (menu_sel) {\r
case 3: currentConfig.EmuOpt ^=0x400; break;\r
if((inp& GP2X_B)||(inp&GP2X_LEFT)||(inp&GP2X_RIGHT)) { // toggleable options\r
switch (menu_sel) {\r
case 3: currentConfig.EmuOpt ^=0x400; break;\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
+\r
gp2x_text_out8(tl_x, y, "Scale 32 column mode %s", (currentConfig.PicoOpt&0x100)?"ON":"OFF"); // 0\r
gp2x_text_out8(tl_x, (y+=10), "Gamma correction %i.%02i", currentConfig.gamma / 100, currentConfig.gamma%100); // 1\r
gp2x_text_out8(tl_x, (y+=10), "Emulate Z80 %s", (currentConfig.PicoOpt&0x004)?"ON":"OFF"); // 2\r
gp2x_text_out8(tl_x, y, "Scale 32 column mode %s", (currentConfig.PicoOpt&0x100)?"ON":"OFF"); // 0\r
gp2x_text_out8(tl_x, (y+=10), "Gamma correction %i.%02i", currentConfig.gamma / 100, currentConfig.gamma%100); // 1\r
gp2x_text_out8(tl_x, (y+=10), "Emulate Z80 %s", (currentConfig.PicoOpt&0x004)?"ON":"OFF"); // 2\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
+\r
gp2x_text_out8(tl_x, y, "Renderer: %s", strrend); // 0\r
gp2x_text_out8(tl_x, (y+=10), "Accurate timing (slower) %s", (currentConfig.PicoOpt&0x040)?"ON":"OFF"); // 1\r
gp2x_text_out8(tl_x, (y+=10), "Accurate sprites (slower) %s", (currentConfig.PicoOpt&0x080)?"ON":"OFF"); // 2\r
gp2x_text_out8(tl_x, y, "Renderer: %s", strrend); // 0\r
gp2x_text_out8(tl_x, (y+=10), "Accurate timing (slower) %s", (currentConfig.PicoOpt&0x040)?"ON":"OFF"); // 1\r
gp2x_text_out8(tl_x, (y+=10), "Accurate sprites (slower) %s", (currentConfig.PicoOpt&0x080)?"ON":"OFF"); // 2\r
static void draw_menu_credits(void)\r
{\r
int tl_x = 15, tl_y = 70, y;\r
static void draw_menu_credits(void)\r
{\r
int tl_x = 15, tl_y = 70, y;\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
\r
gp2x_text_out8(tl_x, 20, "PicoDrive v" VERSION " (c) notaz, 2006,2007");\r
y = tl_y;\r
\r
gp2x_text_out8(tl_x, 20, "PicoDrive v" VERSION " (c) notaz, 2006,2007");\r
y = tl_y;\r
gp2x_text_out8(tl_x, (y+=10), "GnoStiC / Puck2099: USB joystick");\r
gp2x_text_out8(tl_x, (y+=10), "craigix: GP2X hardware");\r
\r
gp2x_text_out8(tl_x, (y+=10), "GnoStiC / Puck2099: USB joystick");\r
gp2x_text_out8(tl_x, (y+=10), "craigix: GP2X hardware");\r
\r
static void draw_menu_root(int menu_sel)\r
{\r
int tl_x = 70, tl_y = 70, y;\r
static void draw_menu_root(int menu_sel)\r
{\r
int tl_x = 70, tl_y = 70, y;\r
- memset(gp2x_screen, 0, 320*240);\r
+ //memset(gp2x_screen, 0, 320*240);\r
+ gp2x_pd_clone_buffer2();\r
gp2x_text_out8(tl_x - 16, tl_y + menu_sel*10, ">");\r
// error\r
if (menuErrorMsg[0]) gp2x_text_out8(5, 226, menuErrorMsg);\r
gp2x_text_out8(tl_x - 16, tl_y + menu_sel*10, ">");\r
// error\r
if (menuErrorMsg[0]) gp2x_text_out8(5, 226, menuErrorMsg);\r
+ extern int localPal[0x100];\r
+ int i;\r
+\r
+ // don't clear old palette just for fun (but make it dark)\r
+ for (i = 0x100-1; i >= 0; i--)\r
+ localPal[i] = (localPal[i] >> 2) & 0x003f3f3f;\r
+ localPal[0xe0] = 0x00000000; // reserved pixels for OSD\r
+ localPal[0xf0] = 0x00ffffff;\r