1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Enable the SDL timer subsystem only if the backlight timeout is enabled.

This commit is contained in:
Ayla
2011-08-16 02:17:21 +02:00
parent 4fd4b234dc
commit e282f8a55d
2 changed files with 7 additions and 3 deletions

View File

@@ -360,7 +360,7 @@ GMenu2X::GMenu2X()
setenv("SDL_FBCON_DONT_CLEAR", "1", 0);
//Screen
if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK|SDL_INIT_TIMER)<0 ) {
if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO|SDL_INIT_JOYSTICK)<0 ) {
ERROR("Could not initialize SDL: %s\n", SDL_GetError());
quit();
}