Skip to content

Commit 253910b

Browse files
committed
no more arrows displayed after exiting menu
1 parent 3d7a90a commit 253910b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

menu.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,6 +996,10 @@ void run_menu_loop()
996996

997997
/* Start Ampli */
998998
popen(SHELL_CMD_TURN_AMPLI_ON, "r");
999+
1000+
/// ------ Reset last screen ------
1001+
SDL_BlitSurface(backup_hw_screen, NULL, hw_screen, NULL);
1002+
SDL_Flip(hw_screen);
9991003
}
10001004

10011005

@@ -1173,6 +1177,10 @@ int launch_resume_menu_loop()
11731177
screen_refresh = 0;
11741178
}
11751179

1180+
/// ----- Clear screen -----
1181+
SDL_FillRect(hw_screen, NULL, 0);
1182+
SDL_Flip(hw_screen);
1183+
11761184
/* Free SDL Surfaces */
11771185
if(bg_surface)
11781186
SDL_FreeSurface(bg_surface);

0 commit comments

Comments
 (0)