Rendering bug with SpriteSheetFont

Issue #39 new
Emmanuel Rousseau
created an issue

the interval defined by startIndex and endIndex, isn't working.

Here's the fix :

@line 79 :

if ((i >= startIndex) || (i <= endIndex)) {
   font.getSprite(xPos, yPos).draw(x + (i * charWidth), y, col);
}

Should be :

if ((i >= startIndex) && (i <= endIndex)) {
   font.getSprite(xPos, yPos).draw(x + (i * charWidth), y, col);
}

Comments (2)

  1. Log in to comment