From: Yuan X. <xuy...@gm...> - 2008-04-13 01:21:49
|
Hi Hedayat, > Hi Yuan, > I'll check it ASAP. Thanks. > And about the SDL problem, have you checked if removing all video related > code except it's initialization (such as SDL_SetVideoMode()) will solve the > problem. (Sorry I can't check it right now since I should sleep!). > I just wander whether we can remove the follow codes in inputsystemsdl.cpp: 00082 if (!SDL_WasInit(SDL_INIT_VIDEO)) 00083 { 00084 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE) < 0) 00085 { 00086 GetLog()->Error() << "ERROR: (InputSystemSDL) SDL not initialized!\n"; 00087 return false; 00088 } 00089 SDL_SetVideoMode(0,0,0,0); 00090 static SDL_SysWMinfo pInfo; 00091 SDL_VERSION(&pInfo.version); 00092 SDL_GetWMInfo(&pInfo); It works in my system without these codes, but I am not sure in other system. -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: xuy...@gm... xy...@ya... web: http://xuyuan.cn.googlepages.com -------------------------------------------------- |