src/video/directfb/SDL_DirectFB_opengl.c
changeset 3023 d72a0dd80e8b
parent 3013 8cc00819c8d6
child 3697 f7b03b6838cb
     1.1 --- a/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 11 23:39:11 2009 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_opengl.c	Sun Jan 11 23:49:23 2009 +0000
     1.3 @@ -173,8 +173,8 @@
     1.4  
     1.5      SDL_DFB_CALLOC(context, 1, sizeof(*context));
     1.6  
     1.7 -    SDL_DFB_CHECKERR(windata->surface->
     1.8 -                     GetGL(windata->surface, &context->context));
     1.9 +    SDL_DFB_CHECKERR(windata->surface->GetGL(windata->surface,
    1.10 +                                             &context->context));
    1.11  
    1.12      if (!context->context)
    1.13          return NULL;
    1.14 @@ -208,16 +208,9 @@
    1.15          p->context->Unlock(p->context);
    1.16  
    1.17      if (windata) {
    1.18 -        int cw, ch;
    1.19 -
    1.20          windata->gl_context = NULL;
    1.21          /* Everything is unlocked, check for a resize */
    1.22 -        SDL_DFB_CHECKERR(windata->surface->
    1.23 -                         GetSize(windata->surface, &cw, &ch));
    1.24 -        if (cw != window->w || ch != window->h)
    1.25 -            SDL_DFB_CHECKERR(windata->window->
    1.26 -                             ResizeSurface(windata->window, window->w,
    1.27 -                                           window->h));
    1.28 +        DirectFB_AdjustWindowSurface(window);
    1.29      }
    1.30  
    1.31      if (ctx != NULL) {
    1.32 @@ -266,8 +259,8 @@
    1.33  
    1.34      if (1 || windata->gl_context) {
    1.35          /* SDL_DFB_CHECKERR(windata->gl_context->context->Unlock(windata->gl_context->context)); */
    1.36 -        SDL_DFB_CHECKERR(windata->surface->
    1.37 -                         Flip(windata->surface, &region, DSFLIP_ONSYNC));
    1.38 +        SDL_DFB_CHECKERR(windata->surface->Flip(windata->surface, &region,
    1.39 +                                                DSFLIP_ONSYNC));
    1.40          /* SDL_DFB_CHECKERR(windata->gl_context->context->Lock(windata->gl_context->context)); */
    1.41  
    1.42      }