pandora: move PicoDrawSetOutFormat
authornotaz <notasas@gmail.com>
Sun, 3 Dec 2023 19:13:04 +0000 (21:13 +0200)
committeririxxxx <31696370+irixxxx@users.noreply.github.com>
Sun, 3 Dec 2023 20:52:28 +0000 (21:52 +0100)
platform/pandora/plat.c

index 88a9652..3b2af54 100644 (file)
@@ -387,8 +387,6 @@ void emu_video_mode_change(int start_line, int line_count, int start_col, int co
        vout_fbdev_resize(layer_fb, fb_w, fb_h, 16, fb_left, fb_right, fb_top, fb_bottom, 4, 0);\r
        vout_fbdev_clear(layer_fb);\r
        plat_video_flip();\r
-\r
-       PicoDrawSetOutFormat(PDF_RGB555, 0);\r
 }\r
 \r
 void plat_video_loop_prepare(void)\r
@@ -397,6 +395,7 @@ void plat_video_loop_prepare(void)
        memset(g_menuscreen_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2);\r
        g_menuscreen_ptr = vout_fbdev_flip(main_fb);\r
 \r
+       PicoDrawSetOutFormat(PDF_RGB555, 0);\r
        // emu_video_mode_change will call pnd_setup_layer()\r
 }\r
 \r