[PATCH 1/4] winex11: remove trailing whitespace in opengl.c

Miklós Máté mtmkls at gmail.com
Mon Apr 3 16:24:20 CDT 2017


Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
 dlls/winex11.drv/opengl.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index d89a19330f..cde7e0b136 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -567,7 +567,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
 done:
     if(vis) XFree(vis);
     if(ctx) {
-        pglXMakeCurrent(gdi_display, None, NULL);    
+        pglXMakeCurrent(gdi_display, None, NULL);
         pglXDestroyContext(gdi_display, ctx);
     }
     if (win != root) XDestroyWindow( gdi_display, win );
@@ -781,7 +781,7 @@ static const char *debugstr_fbconfig( GLXFBConfig fbconfig )
 
 static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, struct wgl_pbuffer* pbuf) {
   int nAttribs = 0;
-  unsigned cur = 0; 
+  unsigned cur = 0;
   int pop;
   int drawattrib = 0;
   int nvfloatattrib = GLX_DONT_CARE;
@@ -854,7 +854,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, struct wgl_
       case WGL_TYPE_RGBA_FLOAT_ATI: pixelattrib = GLX_RGBA_FLOAT_BIT; break ;
       case WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT: pixelattrib = GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT; break ;
       default:
-        ERR("unexpected PixelType(%x)\n", pop);	
+        ERR("unexpected PixelType(%x)\n", pop);
         pop = 0;
       }
       break;
@@ -976,7 +976,7 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, struct wgl_
     case WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV:
     case WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV:
       pop = iWGLAttr[++cur];
-      /** cannot be converted, see direct handling on 
+      /** cannot be converted, see direct handling on
        *   - wglGetPixelFormatAttribivARB
        *  TODO: wglChoosePixelFormat
        */
@@ -2189,7 +2189,7 @@ static struct wgl_pbuffer *X11DRV_wglCreatePbufferARB( HDC hdc, int iPixelFormat
     object->fmt = fmt;
 
     PUSH2(attribs, GLX_PBUFFER_WIDTH,  iWidth);
-    PUSH2(attribs, GLX_PBUFFER_HEIGHT, iHeight); 
+    PUSH2(attribs, GLX_PBUFFER_HEIGHT, iHeight);
     while (piAttribList && 0 != *piAttribList) {
         int attr_v;
         switch (*piAttribList) {
@@ -2681,7 +2681,7 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
                 continue;
 
             case WGL_SUPPORT_OPENGL_ARB:
-                piValues[i] = GL_TRUE; 
+                piValues[i] = GL_TRUE;
                 continue;
 
             case WGL_ACCELERATION_ARB:
@@ -2729,14 +2729,14 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
             case WGL_BIND_TO_TEXTURE_RGBA_ARB:
                 if (!use_render_texture_emulation) {
                     piValues[i] = GL_FALSE;
-                    continue;	
+                    continue;
                 }
                 curGLXAttr = GLX_RENDER_TYPE;
                 if (!fmt) goto pix_error;
                 hTest = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, curGLXAttr, &tmp);
                 if (hTest) goto get_error;
                 if (GLX_COLOR_INDEX_BIT == tmp) {
-                    piValues[i] = GL_FALSE;  
+                    piValues[i] = GL_FALSE;
                     continue;
                 }
                 hTest = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, GLX_DRAWABLE_TYPE, &tmp);
@@ -2891,8 +2891,8 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
             hTest = pglXGetFBConfigAttrib(gdi_display, fmt->fbconfig, curGLXAttr, piValues + i);
             if (hTest) goto get_error;
             curGLXAttr = 0;
-        } else { 
-            piValues[i] = GL_FALSE; 
+        } else {
+            piValues[i] = GL_FALSE;
         }
     }
     return GL_TRUE;
-- 
2.11.0




More information about the wine-patches mailing list