src/video/directfb/SDL_DirectFB_window.c
changeset 5495 b3680e05286d
parent 5489 e0c63a55b67d
child 5535 96594ac5fd1a
equal deleted inserted replaced
5494:78b351c52f53 5495:b3680e05286d
    60 	/* FIXME ... ughh, ugly */
    60 	/* FIXME ... ughh, ugly */
    61 	if (window->x == -1000 && window->y == -1000)
    61 	if (window->x == -1000 && window->y == -1000)
    62 		bshaped = 1;
    62 		bshaped = 1;
    63 	
    63 	
    64     /* Fill the window description. */
    64     /* Fill the window description. */
    65     if (SDL_WINDOWPOS_ISCENTERED(window->x)) {
    65     x = window->x;
    66         x = (dispdata->cw - window->w) / 2;
    66     y = window->y;
    67     } else if (SDL_WINDOWPOS_ISUNDEFINED(window->x)) {
       
    68         x = 0;
       
    69     } else {
       
    70         x = window->x;
       
    71     }
       
    72     
       
    73     if (SDL_WINDOWPOS_ISCENTERED(window->y)) {
       
    74         y = (dispdata->ch - window->h) / 2;
       
    75     } else if (SDL_WINDOWPOS_ISUNDEFINED(window->y)) {
       
    76         y = 0;
       
    77     } else {
       
    78         y = window->y;
       
    79     }
       
    80     
       
    81     if (window->flags & SDL_WINDOW_FULLSCREEN) {
       
    82         x = 0;
       
    83         y = 0;
       
    84     }
       
    85 
    67 
    86     DirectFB_WM_AdjustWindowLayout(window, window->flags, window->w, window->h);
    68     DirectFB_WM_AdjustWindowLayout(window, window->flags, window->w, window->h);
    87 
    69 
    88     /* Create Window */
    70     /* Create Window */
    89 	desc.caps = 0;
    71 	desc.caps = 0;