nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5720d00
)
contrib/friendz: update to use new type of `TileSetFont::hspace`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 17 Nov 2014 17:40:20 +0000
(12:40 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 17 Nov 2014 17:40:20 +0000
(12:40 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
contrib/friendz/src/friendz.nit
patch
|
blob
|
history
diff --git
a/contrib/friendz/src/friendz.nit
b/contrib/friendz/src/friendz.nit
index
b8187ff
..
3877fe2
100644
(file)
--- a/
contrib/friendz/src/friendz.nit
+++ b/
contrib/friendz/src/friendz.nit
@@
-834,7
+834,7
@@
redef class Display
fun measureText(str: String, height: Int): Int
do
var font = app.game.font
- return str.length * (app.game.font.width + app.game.font.hspace)
+ return str.length * (font.width + font.hspace.to_i)
end
# displays a debug rectangle