mark_image.py: fix bad color calculation due to division 33/26133/1
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Mon, 18 Aug 2014 07:45:58 +0000 (09:45 +0200)
committerManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Mon, 18 Aug 2014 07:45:58 +0000 (09:45 +0200)
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>
Script/mark_image.py

index bc84163..9de3063 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python
 
+from __future__ import division
 import sys
 import cairo