src/video/windib/SDL_dibevents.c
changeset 36 13ee9f4834ea
parent 0 74212992fb08
child 112 9ef74357a5fb
     1.1 --- a/src/video/windib/SDL_dibevents.c	Wed May 23 00:36:17 2001 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Wed May 23 23:35:10 2001 +0000
     1.3 @@ -303,14 +303,13 @@
     1.4  {
     1.5  #ifdef _WIN32_WCE
     1.6  	/* WinCE uses the UNICODE version */
     1.7 -	int nLen = strlen(SDL_Appname);
     1.8 -	LPWSTR lpszW = alloca((nLen+1)*2);
     1.9 +	int nLen = strlen(SDL_Appname)+1;
    1.10 +	LPWSTR lpszW = alloca(nLen*2);
    1.11  	MultiByteToWideChar(CP_ACP, 0, SDL_Appname, -1, lpszW, nLen);
    1.12  
    1.13  	SDL_RegisterApp("SDL_app", 0, 0);
    1.14 -	SDL_Window = CreateWindow(lpszW, lpszW,
    1.15 -                        (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX),
    1.16 -                                 0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL);
    1.17 +	SDL_Window = CreateWindow(lpszW, lpszW, WS_VISIBLE,
    1.18 +                                  0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL);
    1.19  	if ( SDL_Window == NULL ) {
    1.20  		SDL_SetError("Couldn't create window");
    1.21  		return(-1);