Skip to content

Commit 617ae13

Browse files
committed
Make sure mouse cursor is not left disabled when exiting
1 parent 83c8956 commit 617ae13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/video_sdl1.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ bool Set_Video_Mode(int w, int h, int bits_per_pixel)
108108
{
109109
SDL_Init(SDL_INIT_VIDEO);
110110
SDL_ShowCursor(SDL_DISABLE);
111+
#ifdef __MINT__
112+
atexit(SDL_Quit);
113+
#endif
111114

112115
int win_w = w;
113116
int win_h = h;

0 commit comments

Comments
 (0)