[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: winex11.drv: Avoid TRUE:FALSE conditional expressions.
From: Michael Stefaniuc <mstefani () redhat ! de>
Date: 2012-07-31 9:33:15
Message-ID: 20120731093315.GC31800 () redhat ! com
[Download RAW message or body]
---
dlls/winex11.drv/opengl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index b2de6ce..75094c9 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1132,7 +1132,7 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex
GLXContext ctx;
/* We use indirect rendering for rendering to bitmaps. See get_formats for a comment about this. */
- BOOL indirect = (context->fmt->dwFlags & PFD_DRAW_TO_BITMAP) ? FALSE : TRUE;
+ BOOL indirect = !(context->fmt->dwFlags & PFD_DRAW_TO_BITMAP);
if(context->gl3_context)
{
@@ -2421,12 +2421,12 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
case WGL_SUPPORT_GDI_ARB:
if (!fmt) goto pix_error;
- piValues[i] = (fmt->dwFlags & PFD_SUPPORT_GDI) ? TRUE : FALSE;
+ piValues[i] = (fmt->dwFlags & PFD_SUPPORT_GDI) != 0;
continue;
case WGL_DRAW_TO_BITMAP_ARB:
if (!fmt) goto pix_error;
- piValues[i] = (fmt->dwFlags & PFD_DRAW_TO_BITMAP) ? TRUE : FALSE;
+ piValues[i] = (fmt->dwFlags & PFD_DRAW_TO_BITMAP) != 0;
continue;
case WGL_DRAW_TO_WINDOW_ARB:
--
1.7.7.6
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic