mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
set biPlanes and color table entry 0. Now works, though not well yet,
on both PPC and Win32.
This commit is contained in:
parent
caf4165eba
commit
784906fde0
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue