Permalink
Browse files

Add SDL2 support to sys/win32/SDL_win32_main.c

  • Loading branch information...
1 parent f120900 commit ed121102f43f9ffb8b15035e19c7c253e8ba67ef @dhewg dhewg committed Jul 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 neo/sys/win32/SDL_win32_main.c
View
2 neo/sys/win32/SDL_win32_main.c
@@ -304,12 +304,14 @@ int console_main(int argc, char *argv[])
atexit(cleanup_output);
atexit(cleanup);
+#if !SDL_VERSION_ATLEAST(2, 0, 0)
/* Sam:
We still need to pass in the application handle so that
DirectInput will initialize properly when SDL_RegisterApp()
is called later in the video initialization.
*/
SDL_SetModuleHandle(GetModuleHandle(NULL));
+#endif
/* Run the application main() code */
status = SDL_main(argc, argv);

0 comments on commit ed12110

Please sign in to comment.