Don't try to register the app if video code is disabled
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4016
This commit is contained in:
parent
ea1961a548
commit
8de23bec51
1 changed files with 5 additions and 1 deletions
|
@ -160,12 +160,16 @@ int console_main(int argc, char *argv[])
|
||||||
atexit(cleanup_output);
|
atexit(cleanup_output);
|
||||||
atexit(SDL_Quit);
|
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,
|
if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT,
|
||||||
GetModuleHandle(NULL)) < 0 ) {
|
GetModuleHandle(NULL)) < 0 ) {
|
||||||
ShowError("WinMain() error", SDL_GetError());
|
ShowError("WinMain() error", SDL_GetError());
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
#endif /* !DISABLE_VIDEO */
|
||||||
|
|
||||||
|
/* Run the application main() code */
|
||||||
SDL_main(argc, argv);
|
SDL_main(argc, argv);
|
||||||
|
|
||||||
/* Exit cleanly, calling atexit() functions */
|
/* Exit cleanly, calling atexit() functions */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue