From 05b840521ab3e621d1664cd91d839914ddabd0db Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 22 Jun 2023 23:58:38 +0800 Subject: treewide: Replace the usage of TRUE/FALSE with true/false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is a separate patch as it's won't affect the code style Signed-off-by: Yonggang Luo Acked-by: David Heidelberg Acked-by: Marek Olšák Acked-by: Erik Faye-Lund Part-of: --- src/glx/windows/wgl.c | 4 ++-- src/glx/windows/windows_drawable.c | 2 +- src/glx/windows/windowsgl.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/glx') diff --git a/src/glx/windows/wgl.c b/src/glx/windows/wgl.c index ffc97675072..cd59a7b98dd 100644 --- a/src/glx/windows/wgl.c +++ b/src/glx/windows/wgl.c @@ -78,7 +78,7 @@ HGLRC wglCreateContextAttribsARB(HDC hdc_, HGLRC hShareContext_, BOOL wglMakeContextCurrentARB(HDC hDrawDC_, HDC hReadDC_, HGLRC hglrc_) { - CHECK_RESOLVED(PFNWGLMAKECONTEXTCURRENTARBPROC, FALSE); + CHECK_RESOLVED(PFNWGLMAKECONTEXTCURRENTARBPROC, false); return RESOLVED_PROC(PFNWGLMAKECONTEXTCURRENTARBPROC)(hDrawDC_, hReadDC_, hglrc_); } @@ -103,6 +103,6 @@ int wglReleasePbufferDCARB(HPBUFFERARB hPbuffer_, HDC hDC_) BOOL wglDestroyPbufferARB(HPBUFFERARB hPbuffer_) { - CHECK_RESOLVED(PFNWGLDESTROYPBUFFERARBPROC, FALSE); + CHECK_RESOLVED(PFNWGLDESTROYPBUFFERARBPROC, false); return RESOLVED_PROC(PFNWGLDESTROYPBUFFERARBPROC)(hPbuffer_); } diff --git a/src/glx/windows/windows_drawable.c b/src/glx/windows/windows_drawable.c index d1d79572b87..67d86abe32f 100644 --- a/src/glx/windows/windows_drawable.c +++ b/src/glx/windows/windows_drawable.c @@ -125,7 +125,7 @@ windows_create_drawable(int type, void *handle) // Access file mapping object by a name snprintf(name, sizeof(name), "Local\\CYGWINX_WINDOWSDRI_%08x", (unsigned int)(uintptr_t)handle); - d->hSection = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, name); + d->hSection = OpenFileMapping(FILE_MAP_ALL_ACCESS, false, name); if (!d->hSection) printf("OpenFileMapping failed %x\n", (int)GetLastError()); diff --git a/src/glx/windows/windowsgl.c b/src/glx/windows/windowsgl.c index 475c2f54cb1..d9809dc902b 100644 --- a/src/glx/windows/windowsgl.c +++ b/src/glx/windows/windowsgl.c @@ -218,7 +218,7 @@ int windows_bind_context(windowsContext *context, windowsDrawable *draw, windows if (!ret) { printf("wglMakeContextCurrentARB error: %08x\n", (int)GetLastError()); - return FALSE; + return false; } } else @@ -227,7 +227,7 @@ int windows_bind_context(windowsContext *context, windowsDrawable *draw, windows BOOL ret = wglMakeCurrent(drawDc, context->ctx); if (!ret) { printf("wglMakeCurrent error: %08x\n", (int)GetLastError()); - return FALSE; + return false; } } @@ -235,7 +235,7 @@ int windows_bind_context(windowsContext *context, windowsDrawable *draw, windows windows_glapi_set_dispatch(); - return TRUE; + return true; } void windows_unbind_context(windowsContext * context) @@ -344,9 +344,9 @@ windows_check_render_test(HDC hdc, void *args) const char *gl_renderer = (const char *)proc(GL_RENDERER); if ((!gl_renderer) || (strcasecmp(gl_renderer, "GDI Generic") == 0)) - *result = FALSE; + *result = false; else - *result = TRUE; + *result = true; } int -- cgit v1.2.3