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

recommend 8bpp, regardless of the actual display depth.
This commit is contained in:
Ove Kaaven 2000-11-25 01:23:12 +00:00 committed by Alexandre Julliard
parent ad62f823f4
commit b48fd54725
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ BOOL16 WINAPI WinGRecommendDIBFormat16(BITMAPINFO *bmpi)
bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER); bmpi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmpi->bmiHeader.biWidth = 320; bmpi->bmiHeader.biWidth = 320;
bmpi->bmiHeader.biHeight = -1; bmpi->bmiHeader.biHeight = -1;
bmpi->bmiHeader.biPlanes = GetDeviceCaps( hdc, PLANES ); bmpi->bmiHeader.biPlanes = 1;
bmpi->bmiHeader.biBitCount = GetDeviceCaps( hdc, BITSPIXEL ); bmpi->bmiHeader.biBitCount = 8;
bmpi->bmiHeader.biCompression = BI_RGB; bmpi->bmiHeader.biCompression = BI_RGB;
bmpi->bmiHeader.biSizeImage = 0; bmpi->bmiHeader.biSizeImage = 0;
bmpi->bmiHeader.biXPelsPerMeter = 0; bmpi->bmiHeader.biXPelsPerMeter = 0;