set biPlanes and color table entry 0. Now works, though not well yet,

on both PPC and Win32.
This commit is contained in:
ehouse 2009-11-15 20:44:50 +00:00
parent caf4165eba
commit 784906fde0

View file

@ -554,7 +554,11 @@ ceBestFitFont( CEDrawCtx* dctx, const XP_U16 soughtHeight,
bmi_mono.hdr.biWidth = testHeight; bmi_mono.hdr.biWidth = testHeight;
bmi_mono.hdr.biHeight = -testHeight; /* negative means 0,0 at top left */ bmi_mono.hdr.biHeight = -testHeight; /* negative means 0,0 at top left */
bmi_mono.hdr.biBitCount = 1; bmi_mono.hdr.biBitCount = 1;
bmi_mono.hdr.biPlanes = 1;
bmi_mono.hdr.biCompression = BI_RGB; bmi_mono.hdr.biCompression = BI_RGB;
bmi_mono.bmiColors[0].rgbRed = 0xFF;
bmi_mono.bmiColors[0].rgbGreen = 0xFF;
bmi_mono.bmiColors[0].rgbBlue = 0xFF;
memDC = CreateCompatibleDC( NULL ); memDC = CreateCompatibleDC( NULL );
memBM = CreateDIBSection( memDC, (BITMAPINFO*)&bmi_mono, DIB_RGB_COLORS, memBM = CreateDIBSection( memDC, (BITMAPINFO*)&bmi_mono, DIB_RGB_COLORS,