src/video/windib/SDL_dibvideo.c
changeset 971 96671ebc50a4
parent 966 f72cc0c7305f
child 1145 d31afac94eff
--- a/src/video/windib/SDL_dibvideo.c	Fri Nov 12 23:14:47 2004 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Fri Nov 12 23:22:08 2004 +0000
@@ -703,12 +703,12 @@
 		if ( (flags & SDL_FULLSCREEN) ) {
 			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
 			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
+		} else if ( center ) {
+			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
+			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
 		} else if ( SDL_windowX || SDL_windowY || window ) {
 			x = bounds.left;
 			y = bounds.top;
-		} else if ( center ) {
-			x = (GetSystemMetrics(SM_CXSCREEN)-width)/2;
-			y = (GetSystemMetrics(SM_CYSCREEN)-height)/2;
 		} else {
 			x = y = -1;
 			swp_flags |= SWP_NOMOVE;