We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1528

Summary: move hint registration from SDLUikitAppDelegate
Product: SDL Reporter: Vittorio Giovara <vitto.giova>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: HG 2.0   
Hardware: iPhone/iPod touch   
OS: iOS (All)   
Attachments: fix of the problem

Description Vittorio Giovara 2012-06-26 15:52:40 UTC
Created attachment 889 [details]
fix of the problem

When subclassing SDLUikitAppDelegate you usually override the -postFinishLaunch method so that you can (for example) call a different function than SDL_main.

As it is now, however, overriding -postFinishLaunch will bar out the SDL_SetHint for the idle timer. Attached a simple patch the moves the hint callback to the -application:didiFinishLaunchingWithOptions:
Comment 1 Sam Lantinga 2012-07-02 05:38:23 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/bc8de0568373