From 8de23bec515ccd70de4f74923ce4f87f4bed562c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 2 May 2001 19:21:00 +0000 Subject: [PATCH] Don't try to register the app if video code is disabled --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4016 --- src/main/win32/SDL_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/win32/SDL_main.c b/src/main/win32/SDL_main.c index c0806cb13..2ce84eb76 100644 --- a/src/main/win32/SDL_main.c +++ b/src/main/win32/SDL_main.c @@ -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 */