diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2023-06-22 23:58:38 +0800 |
---|---|---|
committer | Yonggang Luo <luoyonggang@gmail.com> | 2023-06-27 18:18:28 +0800 |
commit | 05b840521ab3e621d1664cd91d839914ddabd0db (patch) | |
tree | 52656050b3e24673b3c994b4791db1afa011d0d8 /src/glx | |
parent | 49e84fdad2b453460100ea9253015eec437f5405 (diff) |
treewide: Replace the usage of TRUE/FALSE with true/false
this is a separate patch as it's won't affect the code style
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/windows/wgl.c | 4 | ||||
-rw-r--r-- | src/glx/windows/windows_drawable.c | 2 | ||||
-rw-r--r-- | src/glx/windows/windowsgl.c | 10 |
3 files changed, 8 insertions, 8 deletions
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 |