X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpandora%2Fplat.c;h=a9fa99207168ca3976185571a441746ac3b8672c;hb=86b38dc46d93354418faf5aecd430f8661adb4b3;hp=49b8da6b0bb0c986692aa964ec3cbc7f230afe4d;hpb=d4d626658a7a999f48009f408b4a22d280ab80ea;p=picodrive.git diff --git a/platform/pandora/plat.c b/platform/pandora/plat.c index 49b8da6..a9fa992 100644 --- a/platform/pandora/plat.c +++ b/platform/pandora/plat.c @@ -43,7 +43,6 @@ static int g_osd_fps_x, g_osd_y, doing_bg_frame; static const char pnd_script_base[] = "sudo -n /usr/pandora/scripts"; static unsigned char __attribute__((aligned(4))) fb_copy[320 * 240 * 2]; static void *temp_frame; -unsigned char *PicoDraw2FB; const char *renderer_names[] = { NULL }; const char *renderer_names32x[] = { NULL }; @@ -140,13 +139,6 @@ static void draw_cd_leds(void) } } -static int emuscan(unsigned int num) -{ - DrawLineDest = (unsigned short *)g_screen_ptr + num * g_screen_width; - - return 0; -} - void pemu_finalize_frame(const char *fps, const char *notice) { if (notice && notice[0]) @@ -160,6 +152,7 @@ void pemu_finalize_frame(const char *fps, const char *notice) void plat_video_flip(void) { g_screen_ptr = vout_fbdev_flip(layer_fb); + PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2); // XXX: drain OS event queue here, maybe we'll actually use it someday.. xenv_update(NULL, NULL, NULL, NULL); @@ -307,9 +300,6 @@ void emu_video_mode_change(int start_line, int line_count, int is_32cols) if (doing_bg_frame) return; - PicoDrawSetOutFormat(PDF_RGB555, 1); - PicoDrawSetCallbacks(emuscan, NULL); - if (is_32cols) { fb_w = 256; fb_left = fb_right = 32; @@ -360,6 +350,8 @@ void emu_video_mode_change(int start_line, int line_count, int is_32cols) vout_fbdev_clear(layer_fb); vout_fbdev_resize(layer_fb, fb_w, fb_h, 16, fb_left, fb_right, fb_top, fb_bottom, 3); plat_video_flip(); + + PicoDrawSetOutFormat(PDF_RGB555, 0); } void plat_video_loop_prepare(void) @@ -474,7 +466,6 @@ void plat_init(void) } g_menubg_ptr = temp_frame; g_menubg_src_ptr = temp_frame; - PicoDraw2FB = temp_frame; pnd_menu_init();