Removed completely non-portable event thread hack.
Next I'll be working on generalizing the event sources and making the event queue lock-free. :)
This commit is contained in:
parent
95dbe47cf3
commit
c3daf0f0cd
16 changed files with 44 additions and 227 deletions
|
@ -59,7 +59,7 @@ SDL_InitSubSystem(Uint32 flags)
|
|||
#if !SDL_VIDEO_DISABLED
|
||||
/* Initialize the video/event subsystem */
|
||||
if ((flags & SDL_INIT_VIDEO) && !(SDL_initialized & SDL_INIT_VIDEO)) {
|
||||
if (SDL_VideoInit(NULL, (flags & SDL_INIT_EVENTTHREAD)) < 0) {
|
||||
if (SDL_VideoInit(NULL) < 0) {
|
||||
return (-1);
|
||||
}
|
||||
SDL_initialized |= SDL_INIT_VIDEO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue