Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/model_treenode.py
diff options
context:
space:
mode:
authorNostalghia <b.vehikel@googlemail.com>2010-05-30 07:06:22 (GMT)
committer Nostalghia <b.vehikel@googlemail.com>2010-05-30 07:06:22 (GMT)
commit1c85682c78b69b1799c190bafa898ca2ca1bc2ca (patch)
tree493034bb82009b2fcc465a690f6e5ee2daf13e0e /model_treenode.py
parent0e093254c3c3e10569fa3a199d5609695bcb395f (diff)
A simple version of a layer showing bitmap images added.
Diffstat (limited to 'model_treenode.py')
-rw-r--r--model_treenode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/model_treenode.py b/model_treenode.py
index 99f0174..4837153 100644
--- a/model_treenode.py
+++ b/model_treenode.py
@@ -296,7 +296,7 @@ class TreeNode(model_allele.Allele):
new_surface = ctx.get_target().create_similar(cairo.CONTENT_COLOR_ALPHA,
width, height)
new_ctx = cairo.Context(new_surface)
- new_ctx.scale(width, height)
+ new_ctx.scale(float(width), float(height))
# ka_debug.matrix(new_ctx.get_matrix())
new_ctx.translate(0.5, 0.5)
# ka_debug.matrix(new_ctx.get_matrix())
@@ -355,7 +355,7 @@ class TreeNode(model_allele.Allele):
def _preview(self, task, source, formater, width, height):
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
ctx = cairo.Context(surface)
- ctx.scale(width, height)
+ ctx.scale(float(width), float(height))
# ka_debug.matrix(ctx.get_matrix())
ctx.translate(0.5, 0.5)
# ka_debug.matrix(ctx.get_matrix())