|
|
@ -513,14 +513,17 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc |
|
|
|
.iLayerType = PFD_MAIN_PLANE |
|
|
|
.iLayerType = PFD_MAIN_PLANE |
|
|
|
}; |
|
|
|
}; |
|
|
|
format = ChoosePixelFormat(jaggl_device, &pfd); |
|
|
|
format = ChoosePixelFormat(jaggl_device, &pfd); |
|
|
|
if (format) { |
|
|
|
if (!format) { |
|
|
|
if (SetPixelFormat(jaggl_device, format, &pfd)) { |
|
|
|
goto dsi_free; |
|
|
|
// TODO(gpe): get actual number of alpha bits
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
result = JNI_TRUE; |
|
|
|
if (!SetPixelFormat(jaggl_device, format, &pfd)) { |
|
|
|
goto dsi_free; |
|
|
|
goto dsi_free; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO(gpe): get actual number of alpha bits
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result = JNI_TRUE; |
|
|
|
#else |
|
|
|
#else |
|
|
|
#error Unsupported platform |
|
|
|
#error Unsupported platform |
|
|
|
#endif |
|
|
|
#endif |
|
|
|