diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:35:32 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-01 14:35:32 +0200 |
commit | e230b6f78546827521107be23797048482c8b193 (patch) | |
tree | 948c1e77382c484819ea399bba4edcdc19cc6bf0 /src/editing_tools/StraightenTool.vala | |
parent | 211da5fc3048ca2b6ccee2166b0aaaade55cb84f (diff) | |
parent | 49120f48474fc8fdc2448c75d961bc238213cfac (diff) |
Update upstream source from tag 'upstream/0.28.2'
Update to upstream version '0.28.2'
with Debian dir 811236a8e9a1308bf427065dcb6270419ff4f965
Diffstat (limited to 'src/editing_tools/StraightenTool.vala')
-rw-r--r-- | src/editing_tools/StraightenTool.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/editing_tools/StraightenTool.vala b/src/editing_tools/StraightenTool.vala index 5c0eb98..023b636 100644 --- a/src/editing_tools/StraightenTool.vala +++ b/src/editing_tools/StraightenTool.vala @@ -292,10 +292,7 @@ public class StraightenTool : EditingTool { // copy image data from photo into a cairo surface. photo_surf = new Cairo.ImageSurface(Cairo.Format.ARGB32, low_res_tmp.width, low_res_tmp.height); Cairo.Context ctx = new Cairo.Context(photo_surf); - Gdk.cairo_set_source_pixbuf(ctx, low_res_tmp, 0, 0); - ctx.rectangle(0, 0, low_res_tmp.width, low_res_tmp.height); - ctx.fill(); - ctx.paint(); + paint_pixmap_with_background(ctx, low_res_tmp, 0, 0); // prepare rotation surface and context. we paint a rotated, // low-res copy of the image into it, followed by a faint grid. |