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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user