Re: [hatari-devel] Seeing Hatari help on Windows? |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
There is a bug in the latest commits, especially this one: https://framagit.org/hatari/hatari/-/commit/89e199541eeb340d7bd7940361bd271ba829f20d In screen.c after "if (!sdlscrn)" SDL_Quit() is called before SDL_GetError(). That clears the error before reporting and SDL_GetError() returns an empty string. I tested this by calling SDL_Quit() after failing to create a renderer (it was easier to force a failure in renderer creation, than in surface creation). I get this message without calling SDL_Quit(): ERROR: Failed to create renderer: testrenderer not available And this message with calling SDL_Quit() right before Main_ErrorExit(): ERROR: Failed to create renderer:
I suggest this fix: Call SDL_Quit() from Main_ErrorExit() right before exit(errval) and remove the call from screen.c. The documentation for SDL_Quit() states: "It is safe to call this function even in the case of errors in initialization.“. So this should always work.
|
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |