Skip to content

Commit

Permalink
Update controllermap.c
Browse files Browse the repository at this point in the history
fix graphic bug when no controller detected
  • Loading branch information
BeWorld2018 committed Sep 28, 2024
1 parent 440045f commit 938daf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/controllermap.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,10 @@ int main(int argc, char *argv[])
return 2;
}

#ifdef __MORPHOS__
SDL_RenderClear(screen);
#endif

while (!done && SDL_NumJoysticks() == 0) {
SDL_Event event;

Expand Down

0 comments on commit 938daf3

Please sign in to comment.