Mercurial > sdl-ios-xcode
diff src/video/windib/SDL_dibevents.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 | 217f5d5a49e5 |
children | 52b5afd7ecee |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibevents.c Sun Jan 29 08:50:06 2006 +0000 +++ b/src/video/windib/SDL_dibevents.c Sun Jan 29 09:13:36 2006 +0000 @@ -406,10 +406,7 @@ { char *windowid = getenv("SDL_WINDOWID"); -#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 ) { @@ -452,4 +449,5 @@ } else { DestroyWindow(SDL_Window); } + SDL_UnregisterApp(); }