src/video/windows/SDL_windowswindow.c
changeset 5495 b3680e05286d
parent 5494 78b351c52f53
child 5535 96594ac5fd1a
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Tue Mar 15 21:40:57 2011 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Tue Mar 15 21:44:56 2011 -0700
     1.3 @@ -345,7 +345,6 @@
     1.4      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
     1.5      HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
     1.6      RECT rect;
     1.7 -    SDL_Rect bounds;
     1.8      DWORD style;
     1.9      HWND top;
    1.10      BOOL menu;
    1.11 @@ -371,18 +370,8 @@
    1.12      AdjustWindowRectEx(&rect, style, menu, 0);
    1.13      w = (rect.right - rect.left);
    1.14      h = (rect.bottom - rect.top);
    1.15 -
    1.16 -    WIN_GetDisplayBounds(_this, display, &bounds);
    1.17 -    if (SDL_WINDOWPOS_ISCENTERED(window->x)) {
    1.18 -        x = bounds.x + (bounds.w - w) / 2;
    1.19 -    } else {
    1.20 -        x = window->x + rect.left;
    1.21 -    }
    1.22 -    if (SDL_WINDOWPOS_ISCENTERED(window->y)) {
    1.23 -        y = bounds.y + (bounds.h - h) / 2;
    1.24 -    } else {
    1.25 -        y = window->y + rect.top;
    1.26 -    }
    1.27 +    x = window->x + rect.left;
    1.28 +    y = window->y + rect.top;
    1.29  
    1.30      SetWindowPos(hwnd, top, x, y, 0, 0, (SWP_NOCOPYBITS | SWP_NOSIZE));
    1.31  }