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

Initialize the timers subsystem of SDL at the beginning

This fixes a bug where disabling the backlight timeout would
prevent the clock from working correctly.
This commit is contained in:
Paul Cercueil
2013-07-22 00:20:18 -04:00
parent 47bbc0b673
commit e0109dfe55
3 changed files with 1 additions and 5 deletions

View File

@@ -85,7 +85,6 @@ void Clock::addTimer(int timeout)
Clock::Clock(void)
{
SDL_InitSubSystem(SDL_INIT_TIMER);
tzset();
int sec = update();
@@ -95,7 +94,6 @@ Clock::Clock(void)
Clock::~Clock()
{
SDL_RemoveTimer(timer);
SDL_QuitSubSystem(SDL_INIT_TIMER);
instance = NULL;
}