src/video/directfb/SDL_DirectFB_window.c
changeset 3013 8cc00819c8d6
parent 3011 8f4ed5ec2b06
child 3023 d72a0dd80e8b
     1.1 --- a/src/video/directfb/SDL_DirectFB_window.c	Sat Jan 10 18:32:24 2009 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_window.c	Sat Jan 10 21:50:26 2009 +0000
     1.3 @@ -43,11 +43,11 @@
     1.4      SDL_DFB_CALLOC(window->driverdata, 1, sizeof(DFB_WindowData));
     1.5      windata = (DFB_WindowData *) window->driverdata;
     1.6  
     1.7 -    SDL_DFB_CHECKERR(devdata->
     1.8 -                     dfb->SetCooperativeLevel(devdata->dfb, DFSCL_NORMAL));
     1.9 -    SDL_DFB_CHECKERR(dispdata->
    1.10 -                     layer->SetCooperativeLevel(dispdata->layer,
    1.11 -                                                DLSCL_ADMINISTRATIVE));
    1.12 +    SDL_DFB_CHECKERR(devdata->dfb->
    1.13 +                     SetCooperativeLevel(devdata->dfb, DFSCL_NORMAL));
    1.14 +    SDL_DFB_CHECKERR(dispdata->layer->
    1.15 +                     SetCooperativeLevel(dispdata->layer,
    1.16 +                                         DLSCL_ADMINISTRATIVE));
    1.17  
    1.18      /* Fill the window description. */
    1.19      if (window->x == SDL_WINDOWPOS_CENTERED) {
    1.20 @@ -100,9 +100,8 @@
    1.21      /* DSCAPS_VIDEOONLY has negative impact on performance */
    1.22  
    1.23      /* Create the window. */
    1.24 -    SDL_DFB_CHECKERR(dispdata->
    1.25 -                     layer->CreateWindow(dispdata->layer, &desc,
    1.26 -                                         &windata->window));
    1.27 +    SDL_DFB_CHECKERR(dispdata->layer->
    1.28 +                     CreateWindow(dispdata->layer, &desc, &windata->window));
    1.29  
    1.30      windata->window->GetOptions(windata->window, &wopts);
    1.31  #if (DIRECTFB_MAJOR_VERSION == 1) && (DIRECTFB_MINOR_VERSION >= 0)
    1.32 @@ -120,14 +119,14 @@
    1.33  
    1.34      windata->window->SetOptions(windata->window, wopts);
    1.35      /* Get the window's surface. */
    1.36 -    SDL_DFB_CHECKERR(windata->
    1.37 -                     window->GetSurface(windata->window, &windata->surface));
    1.38 +    SDL_DFB_CHECKERR(windata->window->
    1.39 +                     GetSurface(windata->window, &windata->surface));
    1.40      windata->window->SetOpacity(windata->window, 0xFF);
    1.41 -    SDL_DFB_CHECKERR(windata->window->CreateEventBuffer(windata->window,
    1.42 -                                                        &(windata->
    1.43 -                                                          eventbuffer)));
    1.44 -    SDL_DFB_CHECKERR(windata->
    1.45 -                     window->EnableEvents(windata->window, DWET_ALL));
    1.46 +    SDL_DFB_CHECKERR(windata->window->
    1.47 +                     CreateEventBuffer(windata->window,
    1.48 +                                       &(windata->eventbuffer)));
    1.49 +    SDL_DFB_CHECKERR(windata->window->
    1.50 +                     EnableEvents(windata->window, DWET_ALL));
    1.51  
    1.52      if (window->flags & SDL_WINDOW_FULLSCREEN)
    1.53          windata->window->SetStackingClass(windata->window, DWSC_UPPER);
    1.54 @@ -203,21 +202,19 @@
    1.55          int ch;
    1.56  
    1.57          /* Make sure all events are disabled for this operation ! */
    1.58 -        SDL_DFB_CHECKERR(windata->
    1.59 -                         window->DisableEvents(windata->window, DWET_ALL));
    1.60 +        SDL_DFB_CHECKERR(windata->window->
    1.61 +                         DisableEvents(windata->window, DWET_ALL));
    1.62  
    1.63          SDL_DFB_CHECKERR(windata->window->GetSize(windata->window, &cw, &ch));
    1.64          if (cw != window->w || ch != window->h)
    1.65 -            SDL_DFB_CHECKERR(windata->
    1.66 -                             window->Resize(windata->window, window->w,
    1.67 -                                            window->h));
    1.68 -        SDL_DFB_CHECKERR(windata->
    1.69 -                         window->EnableEvents(windata->window, DWET_ALL));
    1.70 +            SDL_DFB_CHECKERR(windata->window->
    1.71 +                             Resize(windata->window, window->w, window->h));
    1.72 +        SDL_DFB_CHECKERR(windata->window->
    1.73 +                         EnableEvents(windata->window, DWET_ALL));
    1.74  
    1.75  #else
    1.76 -        SDL_DFB_CHECKERR(windata->
    1.77 -                         window->Resize(windata->window, window->w,
    1.78 -                                        window->h));
    1.79 +        SDL_DFB_CHECKERR(windata->window->
    1.80 +                         Resize(windata->window, window->w, window->h));
    1.81  #endif
    1.82          SDL_DFB_CHECKERR(windata->window->GetSize(windata->window, &window->w, &window->h));    /* if a window manager should have decided otherwise */
    1.83