diff src/video/windx5/SDL_dx5events.c @ 1288:ea3888b472bf

Cleaned up the app registration stuff a bit
author Sam Lantinga <slouken@libsdl.org>
date Sun, 29 Jan 2006 09:13:36 +0000
parents f61f045343d3
children 52b5afd7ecee
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5events.c	Sun Jan 29 08:50:06 2006 +0000
+++ b/src/video/windx5/SDL_dx5events.c	Sun Jan 29 09:13:36 2006 +0000
@@ -858,10 +858,7 @@
 		SDL_DIfun[i] = NULL;
 	}
 
-#ifndef CS_BYTEALIGNCLIENT
-#define CS_BYTEALIGNCLIENT	0
-#endif
-	SDL_RegisterApp("SDL_app", CS_BYTEALIGNCLIENT, 0);
+	SDL_RegisterApp(NULL, 0, 0);
 
 	SDL_windowid = (windowid != NULL);
 	if ( SDL_windowid ) {
@@ -907,4 +904,5 @@
 	} else {
 		DestroyWindow(SDL_Window);
 	}
+	SDL_UnregisterApp();
 }