Skip to content
Snippets Groups Projects
Commit b48fd547 authored by Ove Kåven's avatar Ove Kåven Committed by Alexandre Julliard
Browse files

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

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