contrib/friendz: update to use new type of `TileSetFont::hspace`
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 17 Nov 2014 17:40:20 +0000 (12:40 -0500)
committerAlexis 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

index b8187ff..3877fe2 100644 (file)
@@ -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