From d756657a483cbd5f8a06e075ca558538dae0c00b Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 26 Jan 2004 19:57:18 +0000 Subject: [PATCH] Changed GetDeviceCaps(dc, COLORRES) to use BITSPIXEL instead --- src/native/win32/org_lwjgl_Display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/win32/org_lwjgl_Display.cpp b/src/native/win32/org_lwjgl_Display.cpp index eb25de72..8c57b8cc 100644 --- a/src/native/win32/org_lwjgl_Display.cpp +++ b/src/native/win32/org_lwjgl_Display.cpp @@ -250,7 +250,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Display_setDisplayMode // Get the device caps width = GetDeviceCaps(screenDC, HORZRES); height = GetDeviceCaps(screenDC, VERTRES); - bpp = GetDeviceCaps(screenDC, COLORRES); + bpp = GetDeviceCaps(screenDC, BITSPIXEL); freq = GetDeviceCaps(screenDC, VREFRESH); if (freq <= 1) freq = 0; // Unknown @@ -400,7 +400,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Display_init // Get the device caps int width = GetDeviceCaps(screenDC, HORZRES); int height = GetDeviceCaps(screenDC, VERTRES); - int bpp = GetDeviceCaps(screenDC, COLORRES); + int bpp = GetDeviceCaps(screenDC, BITSPIXEL); int freq = GetDeviceCaps(screenDC, VREFRESH); if (freq <= 1) freq = 0; // Unknown