Skip to content

Commit

Permalink
Remove redundant assignment. (TextureGroup#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZevEisenberg committed Feb 6, 2021
1 parent 81ecdc9 commit 19ef882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Private/TextExperiment/Component/ASTextLayout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ static void ASTextDrawRun(ASTextLine *line, CTRunRef run, CGContextRef context,
if (mode) { // CJK glyph, need rotated
CGFloat ofs = (ascent - descent) * 0.5;
CGFloat w = glyphAdvances[g].width * 0.5;
CGFloat x = x = line.position.x + verticalOffset + glyphPositions[g].y + (ofs - w);
CGFloat x = line.position.x + verticalOffset + glyphPositions[g].y + (ofs - w);
CGFloat y = -line.position.y + size.height - glyphPositions[g].x - (ofs + w);
if (mode == ASTextRunGlyphDrawModeVerticalRotateMove) {
x += w;
Expand Down

0 comments on commit 19ef882

Please sign in to comment.