Skip to content

Commit

Permalink
pandora: move PicoDrawSetOutFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Dec 3, 2023
1 parent e77cfc3 commit 21e9bfe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/pandora/plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
vout_fbdev_clear(layer_fb);
plat_video_flip();

PicoDrawSetOutFormat(PDF_RGB555, 0);
}

void plat_video_loop_prepare(void)
Expand All @@ -397,6 +395,7 @@ void plat_video_loop_prepare(void)
memset(g_menuscreen_ptr, 0, g_menuscreen_w * g_menuscreen_h * 2);
g_menuscreen_ptr = vout_fbdev_flip(main_fb);

PicoDrawSetOutFormat(PDF_RGB555, 0);
// emu_video_mode_change will call pnd_setup_layer()
}

Expand Down

0 comments on commit 21e9bfe

Please sign in to comment.