Commit b48fd547 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

WinG was written for 8bpp DIBs, so some apps assume that, so always

recommend 8bpp, regardless of the actual display depth.
parent ad62f823
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment