src/video/windx5/SDL_dx5video.c
changeset 1472 4aac8563c296
parent 1402 d910939febfa
child 1480 0a2bd6507477
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Mon Mar 06 07:42:36 2006 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Mon Mar 06 08:11:10 2006 +0000
     1.3 @@ -1123,7 +1123,7 @@
     1.4  		}
     1.5  #endif /* !NO_CHANGEDISPLAYSETTINGS */
     1.6  
     1.7 -		style = GetWindowLong(SDL_Window, GWL_STYLE);
     1.8 +		style = GetWindowLongPtr(SDL_Window, GWL_STYLE);
     1.9  		style &= ~(resizestyle|WS_MAXIMIZE);
    1.10  		if ( video->flags & SDL_FULLSCREEN ) {
    1.11  			style &= ~windowstyle;
    1.12 @@ -1148,7 +1148,7 @@
    1.13  
    1.14  		/* DJM: Don't piss of anyone who has setup his own window */
    1.15  		if ( !SDL_windowid )
    1.16 -			SetWindowLong(SDL_Window, GWL_STYLE, style);
    1.17 +			SetWindowLongPtr(SDL_Window, GWL_STYLE, style);
    1.18  
    1.19  		/* Resize the window (copied from SDL WinDIB driver) */
    1.20  		if ( !SDL_windowid && !IsZoomed(SDL_Window) ) {
    1.21 @@ -1178,7 +1178,7 @@
    1.22  			bounds.top = SDL_windowY;
    1.23  			bounds.right = SDL_windowX+video->w;
    1.24  			bounds.bottom = SDL_windowY+video->h;
    1.25 -			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
    1.26 +			AdjustWindowRectEx(&bounds, GetWindowLongPtr(SDL_Window, GWL_STYLE), FALSE, 0);
    1.27  			width = bounds.right-bounds.left;
    1.28  			height = bounds.bottom-bounds.top;
    1.29  			if ( (flags & SDL_FULLSCREEN) ) {
    1.30 @@ -1217,7 +1217,7 @@
    1.31  	}
    1.32  
    1.33  	/* Set the appropriate window style */
    1.34 -	style = GetWindowLong(SDL_Window, GWL_STYLE);
    1.35 +	style = GetWindowLongPtr(SDL_Window, GWL_STYLE);
    1.36  	style &= ~(resizestyle|WS_MAXIMIZE);
    1.37  	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
    1.38  		style &= ~windowstyle;
    1.39 @@ -1239,7 +1239,7 @@
    1.40  	}
    1.41  	/* DJM: Don't piss of anyone who has setup his own window */
    1.42  	if ( !SDL_windowid )
    1.43 -		SetWindowLong(SDL_Window, GWL_STYLE, style);
    1.44 +		SetWindowLongPtr(SDL_Window, GWL_STYLE, style);
    1.45  
    1.46  	/* Set DirectDraw sharing mode.. exclusive when fullscreen */
    1.47  	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
    1.48 @@ -1264,7 +1264,7 @@
    1.49  		bounds.top = 0;
    1.50  		bounds.right = GetSystemMetrics(SM_CXSCREEN);
    1.51  		bounds.bottom = GetSystemMetrics(SM_CYSCREEN);
    1.52 -		AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
    1.53 +		AdjustWindowRectEx(&bounds, GetWindowLongPtr(SDL_Window, GWL_STYLE), FALSE, 0);
    1.54  		SetWindowPos(SDL_Window, HWND_TOPMOST,
    1.55  			bounds.left, bounds.top, 
    1.56  			bounds.right - bounds.left,
    1.57 @@ -1581,7 +1581,7 @@
    1.58  			bounds.top = SDL_windowY;
    1.59  			bounds.right = SDL_windowX+video->w;
    1.60  			bounds.bottom = SDL_windowY+video->h;
    1.61 -			AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0);
    1.62 +			AdjustWindowRectEx(&bounds, GetWindowLongPtr(SDL_Window, GWL_STYLE), FALSE, 0);
    1.63  			width = bounds.right-bounds.left;
    1.64  			height = bounds.bottom-bounds.top;
    1.65  			if ( center ) {