Skip to content
Snippets Groups Projects
Commit 26c7ade6 authored by deuce's avatar deuce
Browse files

When calling setup_surfaces() from a SDL_USEREVENT_SETVIDMODE event, set

new_scaling and old_scaling to prevent setup_surfaces() from being called
again while the window is initially being set up in a mode other than the
default 80x25.

Fixes a Windows crash when starting in other modes.
parent 6466b5d7
No related branches found
No related tags found
No related merge requests found
......@@ -1726,6 +1726,8 @@ int sdl_video_event_thread(void *data)
sdl.PeepEvents(&ev, 1, SDL_ADDEVENT, 0xffffffff);
}
}
new_scaling = -1;
old_scaling = vstat.scaling;
setup_surfaces();
sdl_ufunc_retval=0;
sdl.SemPost(sdl_ufunc_ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment