Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,

and added a function to cache the application handle so DirectInput
still works properly.
This commit is contained in:
Sam Lantinga
2001-08-09 12:21:32 +00:00
parent 9196e622ca
commit 7fcbb74492
9 changed files with 100 additions and 14 deletions

View File

@@ -64,7 +64,9 @@ extern "C" {
#endif
/* This should be called from your WinMain() function, if any */
extern DECLSPEC int SDL_RegisterApp(char *name, Uint32 style, void *hInst);
extern DECLSPEC void SDL_SetModuleHandle(HMODULE hInst);
/* This can also be called, but is no longer necessary */
extern DECLSPEC int SDL_RegisterApp(char *name, Uint32 style, HMODULE hInst);
#ifdef __cplusplus
}