bug 615121 - fix operator precedence error in glyph yoffset. r=jfkthame a=blocking-betaN

This commit is contained in:
Karl Tomlinson 2010-11-30 15:44:35 +00:00
Родитель 527660a56a
Коммит 0dc037a390
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1793,7 +1793,7 @@ public:
/** The advance, x-offset and y-offset of the glyph, in appunits
* mAdvance is in the text direction (RTL or LTR)
* mXOffset is always from left to right
* mYOffset is always from bottom to top */
* mYOffset is always from top to bottom */
PRInt32 mAdvance;
float mXOffset, mYOffset;
};

Просмотреть файл

@ -1132,8 +1132,8 @@ gfxHarfBuzzShaper::SetGlyphsFromRun(gfxContext *aContext,
: NS_floor(hb2appUnits * x_offset + 0.5);
hb_position_t y_offset = posInfo[glyphStart].y_offset;
details->mYOffset = yPos -
roundY ? dev2appUnits * FixedToIntRound(y_offset)
: NS_floor(hb2appUnits * y_offset + 0.5);
(roundY ? dev2appUnits * FixedToIntRound(y_offset)
: NS_floor(hb2appUnits * y_offset + 0.5));
details->mAdvance = advance;
hb_position_t y_advance = posInfo[glyphStart].y_advance;