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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user