src/video/windib/SDL_dibevents.c
changeset 453 a6fa62b1be09
parent 421 195dd37b3d86
child 514 1080bfc4aa96
     1.1 --- a/src/video/windib/SDL_dibevents.c	Mon Aug 19 18:33:29 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Aug 20 00:20:06 2002 +0000
     1.3 @@ -333,28 +333,9 @@
     1.4  
     1.5  int DIB_CreateWindow(_THIS)
     1.6  {
     1.7 -#ifdef _WIN32_WCE
     1.8 -	/* WinCE uses the UNICODE version */
     1.9 -	int nLen;
    1.10 -	LPWSTR lpszW;
    1.11 -
    1.12 -	if ( SDL_RegisterApp("SDL_app", 0, 0) != 0 ) {
    1.13 -		return -1;
    1.14 -	}
    1.15 -
    1.16 -	nLen = strlen(SDL_Appname) + 1;
    1.17 -	lpszW = alloca(nLen * 2);
    1.18 -
    1.19 -	MultiByteToWideChar(CP_ACP, 0, "SDL_App", -1, lpszW, nLen);
    1.20 -
    1.21 -	SDL_Window = CreateWindow(lpszW, lpszW, WS_VISIBLE,
    1.22 -                                  0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL);
    1.23 -	if ( SDL_Window == NULL ) {
    1.24 -		SDL_SetError("Couldn't create window");
    1.25 -		return(-1);
    1.26 -	}
    1.27 -	ShowWindow(SDL_Window, SW_HIDE);
    1.28 -#else
    1.29 +#ifndef CS_BYTEALIGNCLIENT
    1.30 +#define CS_BYTEALIGNCLIENT	0
    1.31 +#endif
    1.32  	SDL_RegisterApp("SDL_app", CS_BYTEALIGNCLIENT, 0);
    1.33  	if ( SDL_windowid ) {
    1.34  		SDL_Window = (HWND)strtol(SDL_windowid, NULL, 0);
    1.35 @@ -376,8 +357,6 @@
    1.36  		}
    1.37  		ShowWindow(SDL_Window, SW_HIDE);
    1.38  	}
    1.39 -#endif /* _WIN32_WCE */
    1.40 -
    1.41  	return(0);
    1.42  }
    1.43