Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorent <florent.pigout@gmail.com>2011-05-19 15:39:11 (GMT)
committer florent <florent.pigout@gmail.com>2011-05-19 15:39:11 (GMT)
commit20011f0278edd0fbb73ccd35d249c0968bc720ec (patch)
tree817e06f8d0870d226b6719fcd0687bce90d3a332
parent93c47124a79e6a32674364851192d3c5e6283672 (diff)
small fix
-rw-r--r--atoidejouer/ui/screens.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/atoidejouer/ui/screens.py b/atoidejouer/ui/screens.py
index 44e8654..ee410ef 100644
--- a/atoidejouer/ui/screens.py
+++ b/atoidejouer/ui/screens.py
@@ -355,7 +355,10 @@ class ScreenStory(graphics.Scene):
# scale
_new_w, _new_h, _w, _h = size
# ..
- _scale = float(_new_w)/_w
+ if _w is None or _w == 0:
+ _scale = 1
+ else:
+ _scale = float(_new_w)/_w
# get z_order
if sequence_name is None:
_z_order = 1000