Win32 part of Display/Window merge
This commit is contained in:
parent
475d22e73b
commit
0ea7ab410f
|
@ -65,7 +65,7 @@
|
||||||
/*
|
/*
|
||||||
* Find a suitable pixel format using the WGL_ARB_pixel_format extension
|
* Find a suitable pixel format using the WGL_ARB_pixel_format extension
|
||||||
*/
|
*/
|
||||||
WINDOW_H_API int findPixelFormatARB(JNIEnv *env, jobject pixel_format, jobject pixelFormatCaps, bool use_hdc_bpp, bool window, bool pbuffer);
|
WINDOW_H_API int findPixelFormatARB(JNIEnv *env, jobject pixel_format, jobject pixelFormatCaps, bool use_hdc_bpp, bool window, bool double_buffer);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create a window with the specified title, position, size, and
|
* Create a window with the specified title, position, size, and
|
||||||
|
|
|
@ -140,7 +140,7 @@ int findPixelFormatARB(JNIEnv *env, jobject pixel_format, jobject pixelFormatCap
|
||||||
jclass cls_pixel_format = env->GetObjectClass(pixel_format);
|
jclass cls_pixel_format = env->GetObjectClass(pixel_format);
|
||||||
if (use_hdc_bpp) {
|
if (use_hdc_bpp) {
|
||||||
bpp = GetDeviceCaps(hdc, BITSPIXEL);
|
bpp = GetDeviceCaps(hdc, BITSPIXEL);
|
||||||
int iPixelFormat = findPixelFormatARBFromBPP(env, pixel_format, pixelFormatCaps, bpp, window, pbuffer);
|
int iPixelFormat = findPixelFormatARBFromBPP(env, pixel_format, pixelFormatCaps, bpp, window, double_buffer);
|
||||||
if (iPixelFormat == -1)
|
if (iPixelFormat == -1)
|
||||||
bpp = 16;
|
bpp = 16;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue