EventThread: Properly allocate SDL user event codes

This commit is contained in:
Jonas Kulla 2014-01-02 02:22:10 +01:00
parent 0a336ea315
commit 5f16eef273
3 changed files with 84 additions and 54 deletions

View file

@ -234,6 +234,13 @@ int main(int, char *argv[])
return 0;
}
if (!EventThread::allocUserEvents())
{
Debug() << "Error allocating SDL user events";
return 0;
}
/* set working directory */
char *dataDir = SDL_GetBasePath();
if (dataDir)