diff options
author | florent <florent.pigout@gmail.com> | 2011-05-19 15:39:11 (GMT) |
---|---|---|
committer | florent <florent.pigout@gmail.com> | 2011-05-19 15:39:11 (GMT) |
commit | 20011f0278edd0fbb73ccd35d249c0968bc720ec (patch) | |
tree | 817e06f8d0870d226b6719fcd0687bce90d3a332 | |
parent | 93c47124a79e6a32674364851192d3c5e6283672 (diff) |
small fix
-rw-r--r-- | atoidejouer/ui/screens.py | 5 |
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 |