[SDL] Mainline vs Embedded
Ulrich von Zadow
coder at c-base.org
Wed Mar 1 02:03:10 PST 2006
Sam Lantinga wrote:
>>Is there any reason that this replicated code couldn't be conditionally
>>called from SDL_Init? If not, would there be any objection to such a patch
>>being submitted?
>
> It's generally code that can't be called from SDL_Init(), but it's code that
> you can call from your main application - that's why the various initialization
> functions are defined in SDL_main.h
I think the issue at the moment is that there's some code in the OS X main()
that doesn't conform to this (the mail I sent on Feb. 23 contains precisely that
code). Currently, just leaving away SDL_main is broken on OS X because of this
issue. This code could be moved to SDL_Init without causing problems - I'm
executing it directly before SDL_Init in libavg.
Anyway, I'd already asked Sam if a patch for this was ok and gotten a yes, but I
probably won't have the time to do it, so...
Regards,
Uli
More information about the SDL
mailing list