mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-27 14:42:23 +00:00
Add SDL2 support to sys/win32/SDL_win32_main.c
This commit is contained in:
parent
f120900000
commit
ed121102f4
1 changed files with 2 additions and 0 deletions
|
@ -304,12 +304,14 @@ int console_main(int argc, char *argv[])
|
||||||
atexit(cleanup_output);
|
atexit(cleanup_output);
|
||||||
atexit(cleanup);
|
atexit(cleanup);
|
||||||
|
|
||||||
|
#if !SDL_VERSION_ATLEAST(2, 0, 0)
|
||||||
/* Sam:
|
/* Sam:
|
||||||
We still need to pass in the application handle so that
|
We still need to pass in the application handle so that
|
||||||
DirectInput will initialize properly when SDL_RegisterApp()
|
DirectInput will initialize properly when SDL_RegisterApp()
|
||||||
is called later in the video initialization.
|
is called later in the video initialization.
|
||||||
*/
|
*/
|
||||||
SDL_SetModuleHandle(GetModuleHandle(NULL));
|
SDL_SetModuleHandle(GetModuleHandle(NULL));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Run the application main() code */
|
/* Run the application main() code */
|
||||||
status = SDL_main(argc, argv);
|
status = SDL_main(argc, argv);
|
||||||
|
|
Loading…
Reference in a new issue