src/video/directfb/SDL_DirectFB_window.c
changeset 5478 6b65ff3cee62
parent 5288 d4381f3b0d1e
child 5488 c20436fd5627
     1.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Fri Mar 11 16:03:23 2011 -0800
     1.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Fri Mar 11 16:54:43 2011 -0800
     1.3 @@ -260,29 +260,11 @@
     1.4  DirectFB_SetWindowPosition(_THIS, SDL_Window * window)
     1.5  {
     1.6      SDL_DFB_WINDOWDATA(window);
     1.7 -    SDL_DFB_DISPLAYDATA(window);
     1.8      int x, y;
     1.9  
    1.10 -    if (SDL_WINDOWPOS_ISCENTERED(window->x)) {
    1.11 -        x = (dispdata->cw - window->w) / 2;
    1.12 -    } else if (SDL_WINDOWPOS_ISUNDEFINED(window->x)) {
    1.13 -        x = 0;
    1.14 -    } else {
    1.15 -        x = window->x;
    1.16 -    }
    1.17 -    
    1.18 -    if (SDL_WINDOWPOS_ISCENTERED(window->y)) {
    1.19 -        y = (dispdata->ch - window->h) / 2;
    1.20 -    } else if (SDL_WINDOWPOS_ISUNDEFINED(window->y)) {
    1.21 -        y = 0;
    1.22 -    } else {
    1.23 -        y = window->y;
    1.24 -    }
    1.25 +    x = window->x;
    1.26 +    y = window->y;
    1.27  
    1.28 -    if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.29 -        x = 0;
    1.30 -        y = 0;
    1.31 -    }
    1.32      DirectFB_WM_AdjustWindowLayout(window, window->flags, window->w, window->h);
    1.33      SDL_DFB_CHECK(windata->dfbwin->MoveTo(windata->dfbwin, x, y));
    1.34  }