SDL/src/core/winrt
Ryan C. Gordon 350ca0f908 winrt: Don't register orientation hint callback in startup code.
SDL_AddHintCallback() uses SDL_malloc(), which means this would
run before main(), so the app wouldn't be able to supply its own
replacement SDL_malloc() implementation in time.

This code was moved to under SDL_Init. Since the hint callback
already makes efforts to not override the app manifest's
orientation settings, this is safe to move until after pre-main()
startup.

Fixes #4449.
2021-08-03 05:07:39 -04:00
..
SDL_winrtapp_common.cpp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_winrtapp_common.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_winrtapp_direct3d.cpp winrt: Don't register orientation hint callback in startup code. 2021-08-03 05:07:39 -04:00
SDL_winrtapp_direct3d.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_winrtapp_xaml.cpp Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_winrtapp_xaml.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00