mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
Fixed bug with spacing in sprite font measure method.
git-svn-id: http://xni.googlecode.com/svn/XNI@124 ac433895-eea3-a490-d80a-17149a75e588
This commit is contained in:
parent
9c8ed11ac6
commit
0854d703f3
@ -52,7 +52,7 @@
|
||||
} else {
|
||||
// Draw this character
|
||||
Rectangle *sourceRectangle = [self sourceRectangleForCharacter:character];
|
||||
currentPosition.x += sourceRectangle.width + spacing;
|
||||
currentPosition.x += sourceRectangle.width;
|
||||
|
||||
if (currentPosition.x > size.x) {
|
||||
size.x = currentPosition.x;
|
||||
@ -61,6 +61,8 @@
|
||||
if (currentPosition.y > size.y) {
|
||||
size.y = currentPosition.y;
|
||||
}
|
||||
|
||||
currentPosition.x += spacing;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user