Fixed?
This commit is contained in:
parent
04909d4f55
commit
f4165f634e
|
@ -189,17 +189,17 @@ JNIEXPORT jobjectArray JNICALL Java_org_lwjgl_Display_getAvailableDisplayModes
|
||||||
int i = 0, n = 0;
|
int i = 0, n = 0;
|
||||||
while (EnumDisplaySettings(NULL, i ++, &mode) != 0) {
|
while (EnumDisplaySettings(NULL, i ++, &mode) != 0) {
|
||||||
// Filter out indexed modes
|
// Filter out indexed modes
|
||||||
if (mode.dmBitsPerPel < 16) {
|
if (mode.dmBitsPerPel <=8) {
|
||||||
continue;
|
continue;
|
||||||
} else
|
} else
|
||||||
n ++;
|
n ++;
|
||||||
}
|
}
|
||||||
; // Do nothing
|
|
||||||
|
|
||||||
// Allocate an array of DisplayModes big enough
|
// Allocate an array of DisplayModes big enough
|
||||||
jclass displayModeClass = env->FindClass("org/lwjgl/DisplayMode");
|
jclass displayModeClass = env->FindClass("org/lwjgl/DisplayMode");
|
||||||
|
|
||||||
// Note the * 32 - this is because we are manufacturing available alpha/depth/stencil combos.
|
// Note the * 16 - this is because we are manufacturing available alpha/depth/stencil combos.
|
||||||
jobjectArray ret = env->NewObjectArray(n * 16, displayModeClass, NULL);
|
jobjectArray ret = env->NewObjectArray(n * 16, displayModeClass, NULL);
|
||||||
jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIIIIII)V");
|
jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIIIIII)V");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue