diff options
author | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-08-18 09:45:58 +0200 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-08-18 09:45:58 +0200 |
commit | b9463e1f1c4db2f926355a8483ab91fd48d73c36 (patch) | |
tree | cc27b05e71b592a5f8eb372c646d51335f77e958 | |
parent | 755f49e71564ef7e1d2240c7ea0358adecb2f174 (diff) | |
download | desktop-skin-b9463e1f1c4db2f926355a8483ab91fd48d73c36.tar.gz desktop-skin-b9463e1f1c4db2f926355a8483ab91fd48d73c36.tar.bz2 desktop-skin-b9463e1f1c4db2f926355a8483ab91fd48d73c36.zip |
mark_image.py: fix bad color calculation due to division
Import a Python 3.x-compatibility module, so the division
operator returns a float instead of an integer, which is
needed for having enough precision in our case.
Change-Id: Ic3a63fd69e2f54a393228c5fa97cce4ab27588d1
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
-rwxr-xr-x | Script/mark_image.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Script/mark_image.py b/Script/mark_image.py index bc84163..9de3063 100755 --- a/Script/mark_image.py +++ b/Script/mark_image.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +from __future__ import division import sys import cairo |