diff options
author | monsta <[email protected]> | 2017-04-13 15:15:49 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-04-18 21:40:35 +0300 |
commit | 289e64022d28ceb6cac3647ed465ca4d1845e8c4 (patch) | |
tree | b7418880e50f70c64641ac05d0d1fb8f4aecee2e /libview | |
parent | 88aa5bd7a8a48dbe771a5def877e97c6c7f36e56 (diff) | |
download | atril-289e64022d28ceb6cac3647ed465ca4d1845e8c4.tar.bz2 atril-289e64022d28ceb6cac3647ed465ca4d1845e8c4.tar.xz |
build: require cairo >= 1.10.0 and drop some old code
Diffstat (limited to 'libview')
-rw-r--r-- | libview/ev-view.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index ee24dd9d..a9bdef3b 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -6043,18 +6043,7 @@ merge_selection_region (EvView *view, * changed, so we xor the old and new regions * and redraw if it's different */ region = cairo_region_copy (old_sel->covered_region); -#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 9, 12) cairo_region_xor (region, new_sel->covered_region); -#else - cairo_region_t *tbr; - tbr = cairo_region_copy (new_sel->covered_region); - - /* xor old_sel, new_sel*/ - cairo_region_subtract (tbr, region); - cairo_region_subtract (region, new_sel->covered_region); - cairo_region_union (region, tbr); - cairo_region_destroy (tbr); -#endif if (cairo_region_is_empty (region)) { cairo_region_destroy (region); |