Skip to content
Snippets Groups Projects
Commit 009b32a8 authored by deuce's avatar deuce
Browse files

Use init_sdl_video() rather than sdl.gotfuncs

parent 3944e95e
No related branches found
No related tags found
No related merge requests found
...@@ -498,7 +498,7 @@ int sdl_init(int mode) ...@@ -498,7 +498,7 @@ int sdl_init(int mode)
void *dl; void *dl;
#endif #endif
if(!sdl.gotfuncs) if(init_sdl_video())
return(-1); return(-1);
sdl.mutexP(sdl_vstatlock); sdl.mutexP(sdl_vstatlock);
...@@ -1346,7 +1346,7 @@ int sdl_video_event_thread(void *data) ...@@ -1346,7 +1346,7 @@ int sdl_video_event_thread(void *data)
{ {
SDL_Event ev; SDL_Event ev;
if(sdl.gotfuncs) { if(!init_sdl_video()) {
while(1) { while(1) {
if(sdl.WaitEvent(&ev)==1) { if(sdl.WaitEvent(&ev)==1) {
switch (ev.type) { switch (ev.type) {
...@@ -1765,7 +1765,7 @@ int sdl_video_event_thread(void *data) ...@@ -1765,7 +1765,7 @@ int sdl_video_event_thread(void *data)
int sdl_initciolib(int mode) int sdl_initciolib(int mode)
{ {
if(!sdl.gotfuncs) if(init_sdl_video)
return(-1); return(-1);
if(init_sdl_video()==-1) if(init_sdl_video()==-1)
return(-1); return(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment