src/video/windx5/SDL_dx5video.c
changeset 971 96671ebc50a4
parent 901 fd4a6847ddc0
child 1145 d31afac94eff
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Fri Nov 12 23:14:47 2004 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Fri Nov 12 23:22:08 2004 +0000
     1.3 @@ -1168,12 +1168,12 @@
     1.4  			if ( (flags & SDL_FULLSCREEN) ) {
     1.5  				x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
     1.6  				y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
     1.7 +			} else if ( center ) {
     1.8 +				x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
     1.9 +				y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
    1.10  			} else if ( SDL_windowX || SDL_windowY || window ) {
    1.11  				x = bounds.left;
    1.12  				y = bounds.top;
    1.13 -			} else if ( center ) {
    1.14 -				x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
    1.15 -				y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
    1.16  			} else {
    1.17  				x = y = -1;
    1.18  				swp_flags |= SWP_NOMOVE;
    1.19 @@ -1574,12 +1574,12 @@
    1.20  		if ( (flags & SDL_FULLSCREEN) ) {
    1.21  			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
    1.22  			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
    1.23 +		} else if ( center ) {
    1.24 +			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
    1.25 +			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
    1.26  		} else if ( SDL_windowX || SDL_windowY || window ) {
    1.27  			x = bounds.left;
    1.28  			y = bounds.top;
    1.29 -		} else if ( center ) {
    1.30 -			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
    1.31 -			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
    1.32  		} else {
    1.33  			x = y = -1;
    1.34  			swp_flags |= SWP_NOMOVE;