From b849d1a0933cf87dfc2e3fb936d09d3123ac8f57 Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 8 Aug 2019 22:24:23 +0100 Subject: [PATCH] Use alpha_bits instead of cAlphaBits for consistency with X11 --- gl-natives/src/main/c/jaggl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index 3aaa78d..6f5d6e2 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -665,7 +665,7 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc } if (SetPixelFormat(jaggl_device, format, &pfd)) { - jaggl_alpha_bits = pfd.cAlphaBits; + jaggl_alpha_bits = alpha_bits; result = JNI_TRUE; goto dsi_free;