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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40146
This commit is contained in:
Sam Lantinga 2001-08-09 12:21:32 +00:00
parent dac38725b6
commit 5af50961be
9 changed files with 100 additions and 14 deletions

View file

@ -199,12 +199,16 @@ int console_main(int argc, char *argv[])
atexit(SDL_Quit);
#ifndef DISABLE_VIDEO
/* Create and register our class */
/* Create and register our class *
DJM: If we do this here, the user nevers gets a chance to
putenv(SDL_WINDOWID). This is already called later by
the (DIB|DX5)_CreateWindow function, so it should be
safe to comment it out here.
if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT,
GetModuleHandle(NULL)) < 0 ) {
ShowError("WinMain() error", SDL_GetError());
exit(1);
}
}*/
#endif /* !DISABLE_VIDEO */
/* Run the application main() code */