From b480be4c28d79b5791b4b730d9b7e149b826d299 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 15 Aug 2007 03:50:49 +0000 Subject: [PATCH] indent --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402606 --- src/video/directfb/SDL_DirectFB_render.c | 8 ++++---- src/video/x11/SDL_x11opengl.c | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c index aabc5e09c..6512ccb05 100644 --- a/src/video/directfb/SDL_DirectFB_render.c +++ b/src/video/directfb/SDL_DirectFB_render.c @@ -507,7 +507,7 @@ DirectFB_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, (DirectFB_RenderData *) renderer->driverdata; DFBResult ret; Uint8 *dpixels; - int dpitch; + int dpitch; Uint8 *src, *dst; int row; size_t length; @@ -525,10 +525,10 @@ DirectFB_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, 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 --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 964d90c94..50f9922cc 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -89,10 +89,9 @@ X11_GL_LoadLibrary(_THIS, const char *path) 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,