Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasprites.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-04-28 17:23:22 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-04-28 17:23:22 (GMT)
commitcc9a17dba562d7a903fcd72f6eb9cb7852a0bd53 (patch)
tree1bc642440446ae81722dfb671f0bb27aa767ae49 /tasprites.py
parent73a6e8afeac380df4d4b0550364f319f6346e5dd (diff)
pango set_size expects int
Diffstat (limited to 'tasprites.py')
-rw-r--r--tasprites.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasprites.py b/tasprites.py
index 1c2b18d..c546b59 100644
--- a/tasprites.py
+++ b/tasprites.py
@@ -128,7 +128,7 @@ def hit(spr,pos):
# used for most things
def draw_label1(spr, label):
fd = pango.FontDescription('Sans')
- fd.set_size(7*spr.tw.scale*pango.SCALE)
+ fd.set_size(int(7*spr.tw.scale*pango.SCALE))
if type(label) == str:
pl = spr.tw.window.create_pango_layout(str(label))
pl.set_font_description(fd)
@@ -143,7 +143,7 @@ def draw_label1(spr, label):
# used for status blocks
def draw_label2(spr, label):
fd = pango.FontDescription('Sans')
- fd.set_size(9*spr.tw.scale*pango.SCALE)
+ fd.set_size(int(9*spr.tw.scale*pango.SCALE))
pl = spr.tw.window.create_pango_layout(str(label))
pl.set_font_description(fd)
sheight = pl.get_size()[1]/pango.SCALE