]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Fixed stupid typo in the badges generator
authorJan D. Behrens <zykure@web.de>
Sun, 16 Sep 2012 20:22:26 +0000 (22:22 +0200)
committerJan D. Behrens <zykure@web.de>
Sun, 16 Sep 2012 20:23:01 +0000 (22:23 +0200)
xonstat/batch/badges/skin.py

index 399bb7989a025a4eeec7068f3c6f5abf3a7cdeaa..813594df2567cf560231bee4103556474cd991e7 100644 (file)
@@ -266,7 +266,7 @@ class Skin:
         # fontsize is reduced if width gets too large
         ctx.select_font_face(self.font, C.FONT_SLANT_NORMAL, C.FONT_WEIGHT_NORMAL)
         shrinknick = 0
-        while shrinknick < 0.6*fontsize:
+        while shrinknick < 0.6 * self.nick_fontsize:
             ctx.set_font_size(self.nick_fontsize - shrinknick)
             xoff, yoff, tw, th = ctx.text_extents(stripped_nick)[:4]
             if tw > self.nick_maxwidth: