fix incorrect glyph offsets when rendering at a projected position

This commit is contained in:
Gered 2013-07-07 14:52:17 -04:00
parent 9c8d997acd
commit a5ed1944be

View file

@ -264,9 +264,11 @@ public class DelayedSpriteBatch {
float glyphWidth = ((float)glyph.width * scale);
float glyphHeight = ((float)glyph.height * scale);
float glyphXoffset = ((float)glyph.xoffset * scale);
float glyphYoffset = ((float)glyph.yoffset * scale);
draw(
fontTexture,
currentX + glyph.xoffset, currentY + glyph.yoffset,
currentX + glyphXoffset, currentY + glyphYoffset,
glyphWidth, glyphHeight,
glyph.srcX, glyph.srcY, glyph.width, glyph.height,
tint