Mesa (master): st/wgl: 80-column wrapping
Brian Paul
brianp at kemper.freedesktop.org
Mon Jun 25 22:10:53 UTC 2012
Module: Mesa
Branch: master
Commit: 345ee593e91e14173cbc08a647b008855b7638ca
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=345ee593e91e14173cbc08a647b008855b7638ca
Author: Brian Paul <brianp at vmware.com>
Date: Mon Jun 25 14:57:41 2012 -0600
st/wgl: 80-column wrapping
---
src/gallium/state_trackers/wgl/stw_context.c | 10 ++++++----
src/gallium/state_trackers/wgl/stw_ext_context.c | 9 ++++++---
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/gallium/state_trackers/wgl/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c
index 7031af5..1488bee 100644
--- a/src/gallium/state_trackers/wgl/stw_context.c
+++ b/src/gallium/state_trackers/wgl/stw_context.c
@@ -126,7 +126,8 @@ DrvCreateLayerContext(
HDC hdc,
INT iLayerPlane )
{
- return stw_create_context_attribs(hdc, iLayerPlane, 0, 1, 0, 0, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB);
+ return stw_create_context_attribs(hdc, iLayerPlane, 0, 1, 0, 0,
+ WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB);
}
DHGLRC
@@ -156,8 +157,8 @@ stw_create_context_attribs(
return 0;
/*
- * GDI only knows about displayable pixel formats, so determine the pixel format
- * from the framebuffer.
+ * GDI only knows about displayable pixel formats, so determine the pixel
+ * format from the framebuffer.
*
* TODO: Remove the GetPixelFormat() above, and stop relying on GDI.
*/
@@ -374,7 +375,8 @@ stw_make_current(
/* Bind the new framebuffer */
ctx->hdc = hdc;
- ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st, fb->stfb, fb->stfb);
+ ret = stw_dev->stapi->make_current(stw_dev->stapi, ctx->st,
+ fb->stfb, fb->stfb);
stw_framebuffer_reference(&ctx->current_framebuffer, fb);
} else {
ret = stw_dev->stapi->make_current(stw_dev->stapi, NULL, NULL, NULL);
diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.c b/src/gallium/state_trackers/wgl/stw_ext_context.c
index a3470ac..862d037 100644
--- a/src/gallium/state_trackers/wgl/stw_ext_context.c
+++ b/src/gallium/state_trackers/wgl/stw_ext_context.c
@@ -102,7 +102,8 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
return NULL;
}
- if ((contextFlags & WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB) && majorVersion < 3) {
+ if ((contextFlags & WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB) &&
+ majorVersion < 3) {
SetLastError(ERROR_INVALID_VERSION_ARB);
return NULL;
}
@@ -114,6 +115,8 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
return NULL;
}
- return (HGLRC) stw_create_context_attribs( hDC, layerPlane, (DHGLRC)(UINT_PTR)hShareContext,
- majorVersion, minorVersion, contextFlags, profileMask );
+ return (HGLRC) stw_create_context_attribs(hDC, layerPlane,
+ (DHGLRC) (UINT_PTR) hShareContext,
+ majorVersion, minorVersion,
+ contextFlags, profileMask);
}
More information about the mesa-commit
mailing list