More fixes

This commit is contained in:
Caspian Rychlik-Prince 2003-09-10 22:55:25 +00:00
parent 392663d590
commit 6551d03cd4
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ jobjectArray GetAvailableDisplayModes(JNIEnv * env) {
DevMode.dmSize = sizeof(DEVMODE);
//enumerate all displaymodes
while(EnumDisplaySettingsEx(NULL, j++, &DevMode, 0) != 0) {
while(EnumDisplaySettings(NULL, j++, &DevMode) != 0) {
if (DevMode.dmBitsPerPel > 8) {
AvailableModes++;
}
@ -174,7 +174,7 @@ jobjectArray GetAvailableDisplayModes(JNIEnv * env) {
jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIII)V");
i = 0, j = 0, n = 0;
while(EnumDisplaySettingsEx(NULL, j++, &DevMode, 0) != 0) {
while(EnumDisplaySettings(NULL, j++, &DevMode) != 0) {
// Filter out indexed modes
if (DevMode.dmBitsPerPel > 8) {
jobject displayMode;