# HG changeset patch
# User Sam Lantinga <slouken@lokigames.com>
# Date 988831260 0
# Node ID ac67f6758d63ac108822ca4eedb0ff19bf0fcdb1
# Parent  c3e9d4a623c1f6d154c4549c82d595ee3ee02c9c
Don't try to register the app if video code is disabled

diff -r c3e9d4a623c1 -r ac67f6758d63 src/main/win32/SDL_main.c
--- a/src/main/win32/SDL_main.c	Tue May 01 21:12:57 2001 +0000
+++ b/src/main/win32/SDL_main.c	Wed May 02 19:21:00 2001 +0000
@@ -160,12 +160,16 @@
 	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 */