From 24432daa31f4fb03d65bf05040611cf67e7e6a8a Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Fri, 10 Sep 1999 05:49:17 +0000 Subject: [PATCH] changing font weight to step counter of 1 (vs 101) git-svn-id: svn://10.0.0.236/trunk@46717 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp | 4 ++-- mozilla/gfx/src/xlib/nsFontMetricsXlib.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp b/mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp index e3a583f1e7d..9c25a2ff79e 100644 --- a/mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp +++ b/mozilla/gfx/src/gtk/nsFontMetricsGTK.cpp @@ -1726,7 +1726,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet) int weightIndex; if (steps) { if (steps < 10) { - int base = (weight - (steps * 101)); + int base = (weight - steps); GET_WEIGHT_INDEX(weightIndex, base); while (steps--) { nsFontWeight* prev = weights[weightIndex]; @@ -1742,7 +1742,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet) } else if (steps > 90) { steps = (100 - steps); - int base = (weight + (steps * 101)); + int base = (weight + steps); GET_WEIGHT_INDEX(weightIndex, base); while (steps--) { nsFontWeight* prev = weights[weightIndex]; diff --git a/mozilla/gfx/src/xlib/nsFontMetricsXlib.cpp b/mozilla/gfx/src/xlib/nsFontMetricsXlib.cpp index 5cb00e3e65f..b818534d5b3 100644 --- a/mozilla/gfx/src/xlib/nsFontMetricsXlib.cpp +++ b/mozilla/gfx/src/xlib/nsFontMetricsXlib.cpp @@ -1631,7 +1631,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet) int weightIndex; if (steps) { if (steps < 10) { - int base = (weight - (steps * 101)); + int base = (weight - steps); GET_WEIGHT_INDEX(weightIndex, base); while (steps--) { nsFontWeight* prev = weights[weightIndex]; @@ -1647,7 +1647,7 @@ TryCharSet(nsFontSearch* aSearch, nsFontCharSet* aCharSet) } else if (steps > 90) { steps = (100 - steps); - int base = (weight + (steps * 101)); + int base = (weight + steps); GET_WEIGHT_INDEX(weightIndex, base); while (steps--) { nsFontWeight* prev = weights[weightIndex];