summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-06-16 01:53:47 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-06-16 01:53:47 +0200
commit1d4a10450ab740649c388d4e798427b8900e6d47 (patch)
tree3555ef11a0e0576e8b2f5a930aa9ca87dde2fab7
parent362abb65c1410f93f2f8915450a9355fd8d6e75d (diff)
downloadscreenshot-beautifier-1d4a10450ab740649c388d4e798427b8900e6d47.tar.gz
screenshot-beautifier-1d4a10450ab740649c388d4e798427b8900e6d47.tar.bz2
* Fix shadows drawing
-rwxr-xr-xbeautifier.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifier.py b/beautifier.py
index e0cbb1b..fbc8028 100755
--- a/beautifier.py
+++ b/beautifier.py
@@ -103,7 +103,7 @@ def cairo_beautify (file, radius = 0.1, ratio = 1, xy = 0.0, yx = 0.1):
cr.set_operator (cairo.OPERATOR_OVER)
# Shadows
x0 = 0.1 * width
- y0 = 1.13 * height
+ y0 = 1.09 * height
x1 = 1.09 * width
y1 = 1.13 * height + yx * width
x2 = x1 + 0.2 * width
@@ -130,7 +130,7 @@ def cairo_beautify (file, radius = 0.1, ratio = 1, xy = 0.0, yx = 0.1):
cr.paint ()
cr.set_matrix (old_matrix)
# Paint reflection
- y0 = 0.89 * height + ratio * height
+ y0 = 1.09 * height + ratio * height
matrix = cairo.Matrix (xy = - xy, yx = yx, yy = - ratio, y0 = y0)
cr.transform (matrix)
cr.set_source_surface (reflect_surface, 0.1 * width)