winex11.drv: Avoid TRUE:FALSE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-07-31 11:33:15 +02:00 committed by Alexandre Julliard
parent 6740d340c6
commit 43b8858986
1 changed files with 3 additions and 3 deletions

View File

@ -1132,7 +1132,7 @@ static GLXContext create_glxcontext(Display *display, struct wgl_context *contex
GLXContext ctx; GLXContext ctx;
/* We use indirect rendering for rendering to bitmaps. See get_formats for a comment about this. */ /* 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) if(context->gl3_context)
{ {
@ -2424,12 +2424,12 @@ static BOOL X11DRV_wglGetPixelFormatAttribivARB( HDC hdc, int iPixelFormat, int
case WGL_SUPPORT_GDI_ARB: case WGL_SUPPORT_GDI_ARB:
if (!fmt) goto pix_error; if (!fmt) goto pix_error;
piValues[i] = (fmt->dwFlags & PFD_SUPPORT_GDI) ? TRUE : FALSE; piValues[i] = (fmt->dwFlags & PFD_SUPPORT_GDI) != 0;
continue; continue;
case WGL_DRAW_TO_BITMAP_ARB: case WGL_DRAW_TO_BITMAP_ARB:
if (!fmt) goto pix_error; 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; continue;
case WGL_DRAW_TO_WINDOW_ARB: case WGL_DRAW_TO_WINDOW_ARB: