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:
parent
ad62f823f4
commit
b48fd54725
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue