Re: [hatari-devel] Re: Hatari SDL2 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Am Sun, 17 Aug 2014 16:12:15 -0500
schrieb Bob Carpenter <hatari@xxxxxxxxxx>:
> Thomas,
>
> I finally had time to try this again. If you comment out the main
> function in SDLMain.m, Hatari will compile. However, you are exactly
> correct that the OS X menu does not work correctly.
Ok, ... that would also have been too easy, I guess.
> From the current development code, here is what I have done (in case
> anyone is interested):
>
> 1. In SDLMain.m, I commented out code to workaround bug in SDL
> 1.2.11. I simply changed the doFullScreen function to call
> Screen_EnterFullScreen(). It appears the SDL developers fixed the
> problem in 1.2.15 (if not earlier). I tried my change using 1.2.15
> and I had no problems changing between full-screen mode and windowed
> mode. I gave up trying after 10 times of switching Hatari between
> full-screen and windowed mode.
>
> 2. In PrefsController.m, I commented out SDLK_LSUPER, SDLK_RSUPER,
> SDLK_COMPOSE, SDLK_BREAK, and SDLK_EURO in
> Preferences_KeysForJoysticks[]. I did not see where they were used.
>
> 3. In SDLMain.m, I changed the SDL_main call in
> applicationDidFinishLaunching to status = SDL_Init
> (SDL_INIT_EVERYTHING); I tried just using SDL_INIT_VIDEO, but it did
> not make a difference.
Mhh, could you please have one more try: Undo change #3, i.e. put the
call to SDL_main back into applicationDidFinishLaunching.
Then go to src/main.c and rename the main() function there to
SDL_main(). I'm curious if that makes a difference.
Thomas