src/video/directfb/SDL_DirectFB_window.c
changeset 5495 b3680e05286d
parent 5489 e0c63a55b67d
child 5535 96594ac5fd1a
     1.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Tue Mar 15 21:40:57 2011 -0700
     1.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Tue Mar 15 21:44:56 2011 -0700
     1.3 @@ -62,26 +62,8 @@
     1.4  		bshaped = 1;
     1.5  	
     1.6      /* Fill the window description. */
     1.7 -    if (SDL_WINDOWPOS_ISCENTERED(window->x)) {
     1.8 -        x = (dispdata->cw - window->w) / 2;
     1.9 -    } else if (SDL_WINDOWPOS_ISUNDEFINED(window->x)) {
    1.10 -        x = 0;
    1.11 -    } else {
    1.12 -        x = window->x;
    1.13 -    }
    1.14 -    
    1.15 -    if (SDL_WINDOWPOS_ISCENTERED(window->y)) {
    1.16 -        y = (dispdata->ch - window->h) / 2;
    1.17 -    } else if (SDL_WINDOWPOS_ISUNDEFINED(window->y)) {
    1.18 -        y = 0;
    1.19 -    } else {
    1.20 -        y = window->y;
    1.21 -    }
    1.22 -    
    1.23 -    if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.24 -        x = 0;
    1.25 -        y = 0;
    1.26 -    }
    1.27 +    x = window->x;
    1.28 +    y = window->y;
    1.29  
    1.30      DirectFB_WM_AdjustWindowLayout(window, window->flags, window->w, window->h);
    1.31