bad or of flags, r=dcone, bug 13745

git-svn-id: svn://10.0.0.236/trunk@55088 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com 1999-12-02 21:54:39 +00:00
parent b7c2823d4c
commit 06dcead5d1

View File

@ -247,7 +247,7 @@ nsresult GetSysFontInfo(HDC aHDC, nsSystemAttrID anID, nsFont * aFont)
// Do Style
aFont->style = NS_FONT_STYLE_NORMAL;
if (logFont->lfItalic) {
aFont->decorations &= NS_FONT_STYLE_ITALIC;
aFont->style = NS_FONT_STYLE_ITALIC;
}
// XXX What about oblique?
@ -260,10 +260,10 @@ nsresult GetSysFontInfo(HDC aHDC, nsSystemAttrID anID, nsFont * aFont)
// Do decorations
aFont->decorations = NS_FONT_DECORATION_NONE;
if (logFont->lfUnderline) {
aFont->decorations &= NS_FONT_DECORATION_UNDERLINE;
aFont->decorations |= NS_FONT_DECORATION_UNDERLINE;
}
if (logFont->lfStrikeOut) {
aFont->decorations &= NS_FONT_DECORATION_LINE_THROUGH;
aFont->decorations |= NS_FONT_DECORATION_LINE_THROUGH;
}
// Do Size