SDL 2.0.4 application window does not show up |
FMS
|
ok, sorry for having bothered you all with this. It's not really a SDL problem (although SDL behaves strangely here). It is a problem with my editor Notepad++ and its console plugin NppExec. If you have the same problem or are interested in why I think SDL behaves strangely in this respect read on.
If I compile my program and run it from the console in Notepad++, NppExec calls "CreateProcess" like so:
This makes the application window hidden on startup. (I wonder why it did not do so for older versions of SDL2...) What I consider strange is that calling "SDL_ShowWindow" in my SDL-application does not show the window. Probably SDL thinks the window is currently shown, because if I call "SDL_HideWindow" and then "SDL_ShowWindow" directly afterwards the window is actually made visible. Is this a bug in SDL? Shouldn't SDL realize the state of the window on startup? Anyways, this is a minor issue, sorry if you feel like I have wasted your time. Best, FMS |
|||||||||||||
|