From b48fd54725ec696fdfaf43702b13d95a9e4b7127 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sat, 25 Nov 2000 01:23:12 +0000 Subject: [PATCH] WinG was written for 8bpp DIBs, so some apps assume that, so always recommend 8bpp, regardless of the actual display depth. --- dlls/gdi/wing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/gdi/wing.c b/dlls/gdi/wing.c index 8527772cc0d..cf5a2f983a8 100644 --- a/dlls/gdi/wing.c +++ b/dlls/gdi/wing.c @@ -61,8 +61,8 @@ BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi) bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER); bmpi->bmiHeader.biWidth = 320; bmpi->bmiHeader.biHeight = -1; - bmpi->bmiHeader.biPlanes = GetDeviceCaps( hdc, PLANES ); - bmpi->bmiHeader.biBitCount = GetDeviceCaps( hdc, BITSPIXEL ); + bmpi->bmiHeader.biPlanes = 1; + bmpi->bmiHeader.biBitCount = 8; bmpi->bmiHeader.biCompression = BI_RGB; bmpi->bmiHeader.biSizeImage = 0; bmpi->bmiHeader.biXPelsPerMeter = 0;