out of paranoia, put SDL_EnableUnicode() to after SDL_Init

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@514 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-10-05 02:10:42 +00:00
parent 51160869a4
commit 6fcc2cacad

View File

@ -274,10 +274,6 @@ int worker_func(void*)
extern "C" void projectM_xmms_init(void)
{
// printf("projectM plugin: Initializing\n");
SDL_EnableUNICODE(1);
/* First, initialize SDL's video subsystem. */
// std::cerr << "sdl init begin" << std::endl;
if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_TIMER ) < 0 ) {
@ -288,6 +284,11 @@ extern "C" void projectM_xmms_init(void)
return;
}
// printf("projectM plugin: Initializing\n");
SDL_EnableUNICODE(1);
//std::cerr << "sdl init end" << std::endl;
sem = SDL_CreateSemaphore(1);
worker_thread = SDL_CreateThread ( *worker_func, NULL);