changing floats to double to try to fix MozillaAliveTest.

git-svn-id: svn://10.0.0.236/trunk@241791 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karlt+%karlt.net
2007-12-19 21:55:35 +00:00
parent e7541af31f
commit f57822ac59

View File

@@ -115,7 +115,7 @@ struct DCFromContext {
gfxWindowsFont::gfxWindowsFont(const nsAString& aName, const gfxFontStyle *aFontStyle)
: gfxFont(aName, aFontStyle),
mFont(nsnull), mAdjustedSize(0.0f), mScriptCache(nsnull),
mFont(nsnull), mAdjustedSize(0.0), mScriptCache(nsnull),
mFontFace(nsnull), mScaledFont(nsnull),
mMetrics(nsnull)
{
@@ -243,7 +243,7 @@ gfxWindowsFont::MakeHFONT()
chosenWeight = baseWeight * 100;
mAdjustedSize = GetStyle()->size;
if (mMetrics->xHeight != 0.0f && GetStyle()->sizeAdjust > 0.0f) {
if (mMetrics->xHeight != 0.0 && GetStyle()->sizeAdjust > 0.0) {
if (!mFont) {
FillLogFont(mAdjustedSize, chosenWeight);
mFont = CreateFontIndirectW(&mLogFont);