4 #include "../common/plat.h"
5 #include "../common/readpng.h"
6 #include "../common/menu.h"
9 void plat_video_menu_enter(int is_rom_loaded)
13 // darken the active framebuffer
14 memset(gp2x_screen, 0, 320*8*2);
15 menu_darken_bg((char *)gp2x_screen + 320*8*2, 320*224, 1);
16 memset((char *)gp2x_screen + 320*232*2, 0, 320*8*2);
20 // should really only happen once, on startup..
21 readpng(gp2x_screen, "skin/background.png", READPNG_BG);
25 gp2x_memcpy_buffers((1<<2), gp2x_screen, 0, 320*240*2);
28 gp2x_video_changemode2(16);
29 gp2x_video_RGB_setscaling(0, 320, 240);
33 void plat_video_menu_begin(void)
35 gp2x_pd_clone_buffer2();
38 void plat_video_menu_end(void)
40 gp2x_video_flush_cache();