Skip to content

Commit 6bc02d3

Browse files
committed
remove text when loading ROMs
Signed-off-by: Vincent-FK <[email protected]>
1 parent 359ba6b commit 6bc02d3

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

platform/common/menu_pico.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,10 @@ static void cdload_progress_cb(const char *fname, int percent)
14721472

14731473
void menu_romload_prepare(const char *rom_name)
14741474
{
1475+
#ifndef ALLOW_TEXT_OUT
1476+
return;
1477+
#endif //ALLOW_TEXT_OUT
1478+
14751479
const char *p = rom_name + strlen(rom_name);
14761480

14771481
while (p > rom_name && *p != '/')
@@ -1492,6 +1496,10 @@ void menu_romload_prepare(const char *rom_name)
14921496

14931497
void menu_romload_end(void)
14941498
{
1499+
#ifndef ALLOW_TEXT_OUT
1500+
return;
1501+
#endif //ALLOW_TEXT_OUT
1502+
14951503
PicoCartLoadProgressCB = NULL;
14961504
PicoCDLoadProgressCB = NULL;
14971505

platform/common/plat_sdl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,8 +1730,10 @@ void plat_video_menu_end(void)
17301730
if (SDL_MUSTLOCK(plat_sdl_screen))
17311731
SDL_UnlockSurface(plat_sdl_screen);
17321732
flip_NNOptimized_LeftAndRightBilinear(plat_sdl_screen, virtual_hw_screen, RES_HW_SCREEN_HORIZONTAL, RES_HW_SCREEN_VERTICAL);
1733-
//SDL_Flip(hw_screen);
1734-
SDL_Rotate_270(hw_screen, virtual_hw_screen);
1733+
1734+
memcpy(hw_screen->pixels, virtual_hw_screen->pixels, hw_screen->w*hw_screen->h*sizeof(uint16_t));
1735+
SDL_Flip(hw_screen);
1736+
//SDL_Rotate_270(hw_screen, virtual_hw_screen);
17351737
//SDL_Flip(plat_sdl_screen);
17361738
}
17371739
g_menuscreen_ptr = NULL;

platform/libpicofe

Submodule libpicofe updated 1 file

0 commit comments

Comments
 (0)