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 - move hint registration from SDLUikitAppDelegate
Summary: move hint registration from SDLUikitAppDelegate
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: iPhone/iPod touch iOS (All)
: P2 trivial
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 15:52 UTC by Vittorio Giovara
Modified: 2012-07-02 05:38 UTC (History)
0 users

See Also:


Attachments
fix of the problem (1.08 KB, application/octet-stream)
2012-06-26 15:52 UTC, Vittorio Giovara
Details

Note You need to log in before you can comment on or make changes to this bug.
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