From: chaoskagami Date: Fri, 6 Jan 2017 03:45:09 +0000 (-0500) Subject: Should fix #51 X-Git-Tag: v0.3.1~38 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=d56f3d3e3b50bb7ad44e54af6992c5f96b33d8dc;p=corbenik%2Fcorbenik.git Should fix #51 --- diff --git a/source/main.c b/source/main.c index 42c552d..0e1f189 100644 --- a/source/main.c +++ b/source/main.c @@ -47,11 +47,10 @@ main(int argc, char** argv) clear_bg(); // This is a menuhax splash (90deg rotated BGR8 pixel data) - if (load_bg_top(PATH_TOP_BG) || load_bg_bottom(PATH_BOTTOM_BG)) - have_bg = 1; + int bg_top = load_bg_top(PATH_TOP_BG); + int bg_bottom = load_bg_bottom(PATH_BOTTOM_BG); - clear_disp(TOP_SCREEN); - clear_disp(BOTTOM_SCREEN); + have_bg = (bg_top || bg_bottom); while (1) { if (get_opt_u32(OPTION_AUTOBOOT) && !r_held && !doing_autoboot) { @@ -63,11 +62,17 @@ main(int argc, char** argv) if (have_bg && !si) { screen_mode(RGBA8); // Use RGBA8 mode. si = 1; + + clear_disp(TOP_SCREEN); + clear_disp(BOTTOM_SCREEN); } } else { if (!si) { screen_mode(RGBA8); // Use RGBA8 mode. si = 1; + + clear_disp(TOP_SCREEN); + clear_disp(BOTTOM_SCREEN); } menu_handler(); }