Skip to content

Commit

Permalink
Don't try to register the app if video code is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed May 2, 2001
1 parent 8e0efc5 commit a8fa547
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/win32/SDL_main.c
Expand Up @@ -160,12 +160,16 @@ int console_main(int argc, char *argv[])
atexit(cleanup_output);
atexit(SDL_Quit);

/* Create and register our class, then run main code */
#ifndef DISABLE_VIDEO
/* Create and register our class */
if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT,
GetModuleHandle(NULL)) < 0 ) {
ShowError("WinMain() error", SDL_GetError());
exit(1);
}
#endif /* !DISABLE_VIDEO */

/* Run the application main() code */
SDL_main(argc, argv);

/* Exit cleanly, calling atexit() functions */
Expand Down

0 comments on commit a8fa547

Please sign in to comment.