# HG changeset patch # User Sam Lantinga # Date 1187149849 0 # Node ID 5234868559faae5466468ab40e980d3e0316fa05 # Parent 5523312f311efbef75d6898f6c29c36eb738caef indent diff -r 5523312f311e -r 5234868559fa src/video/directfb/SDL_DirectFB_render.c --- a/src/video/directfb/SDL_DirectFB_render.c Wed Aug 15 03:34:14 2007 +0000 +++ b/src/video/directfb/SDL_DirectFB_render.c Wed Aug 15 03:50:49 2007 +0000 @@ -507,7 +507,7 @@ (DirectFB_RenderData *) renderer->driverdata; DFBResult ret; Uint8 *dpixels; - int dpitch; + int dpitch; Uint8 *src, *dst; int row; size_t length; @@ -525,10 +525,10 @@ src += pitch; dst += dpitch; } - SDL_DFB_CHECKERR(data->surface->Unlock(data->surface) ); + SDL_DFB_CHECKERR(data->surface->Unlock(data->surface)); return 0; -error: - return 1; + error: + return 1; } diff -r 5523312f311e -r 5234868559fa src/video/x11/SDL_x11opengl.c --- a/src/video/x11/SDL_x11opengl.c Wed Aug 15 03:34:14 2007 +0000 +++ b/src/video/x11/SDL_x11opengl.c Wed Aug 15 03:50:49 2007 +0000 @@ -89,10 +89,9 @@ if (!handle) { return -1; } - // LoadLibrary may be called before WindowCreate! X11_GL_Initialize(_this); - + /* Load new function pointers */ _this->gl_data->glXGetProcAddress = (void *(*)(const GLubyte *)) GL_LoadFunction(handle,