winhlp32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
aae2602eba
commit
66696feede
|
@ -1873,9 +1873,9 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
|
||||||
hlpfile->fonts[i].LogFont.lfEscapement = 0;
|
hlpfile->fonts[i].LogFont.lfEscapement = 0;
|
||||||
hlpfile->fonts[i].LogFont.lfOrientation = 0;
|
hlpfile->fonts[i].LogFont.lfOrientation = 0;
|
||||||
hlpfile->fonts[i].LogFont.lfWeight = (flag & 1) ? 700 : 400;
|
hlpfile->fonts[i].LogFont.lfWeight = (flag & 1) ? 700 : 400;
|
||||||
hlpfile->fonts[i].LogFont.lfItalic = (flag & 2) ? TRUE : FALSE;
|
hlpfile->fonts[i].LogFont.lfItalic = (flag & 2) != 0;
|
||||||
hlpfile->fonts[i].LogFont.lfUnderline = (flag & 4) ? TRUE : FALSE;
|
hlpfile->fonts[i].LogFont.lfUnderline = (flag & 4) != 0;
|
||||||
hlpfile->fonts[i].LogFont.lfStrikeOut = (flag & 8) ? TRUE : FALSE;
|
hlpfile->fonts[i].LogFont.lfStrikeOut = (flag & 8) != 0;
|
||||||
hlpfile->fonts[i].LogFont.lfCharSet = hlpfile->charset;
|
hlpfile->fonts[i].LogFont.lfCharSet = hlpfile->charset;
|
||||||
hlpfile->fonts[i].LogFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
|
hlpfile->fonts[i].LogFont.lfOutPrecision = OUT_DEFAULT_PRECIS;
|
||||||
hlpfile->fonts[i].LogFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
hlpfile->fonts[i].LogFont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
|
||||||
|
|
Loading…
Reference in New Issue