- {
- char buff[256];
-
- // should really only happen once, on startup..
- emu_make_path(buff, "skin/background.png", sizeof(buff));
- if (readpng(g_screen_ptr, buff, READPNG_BG) < 0)
- memset(g_screen_ptr, 0, 320*240*2);
- }
-
- // copy to buffer2, switch to black
- gp2x_memcpy_buffers((1<<2), g_screen_ptr, 0, 320*240*2);
-
- /* try to switch nicely avoiding tearing on Wiz */
- gp2x_video_wait_vsync();
- memset(gp2x_screens[0], 0, 320*240*2);
- memset(gp2x_screens[1], 0, 320*240*2);
- gp2x_video_flip2();
- gp2x_video_wait_vsync();
- gp2x_video_wait_vsync();