[gimp/gimp-2-10] app: fix GimpMeter history-graph painting when clipped
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix GimpMeter history-graph painting when clipped
- Date: Tue, 3 Jul 2018 14:32:35 +0000 (UTC)
commit 8ab76a42d89817730d0014384dceb4b0dd1fa870
Author: Ell <ell_se yahoo com>
Date: Tue Jul 3 10:28:08 2018 -0400
app: fix GimpMeter history-graph painting when clipped
In GimpMeter, use cairo_path_extents() for getting the history
graph's extents, rather than cairo_clip_extents(), since the latter
may also include clipping applied by GTK.
(cherry picked from commit b8e08cddbc20cb3ff25d345d9125d94a7774bc8b)
app/widgets/gimpmeter.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpmeter.c b/app/widgets/gimpmeter.c
index 19f9ae2057..ea269e86dc 100644
--- a/app/widgets/gimpmeter.c
+++ b/app/widgets/gimpmeter.c
@@ -571,9 +571,8 @@ gimp_meter_expose_event (GtkWidget *widget,
allocation.width - BORDER_WIDTH - 0.5 * size,
0.25 * size);
cairo_close_path (cr);
- cairo_clip (cr);
- cairo_clip_extents (cr,
+ cairo_path_extents (cr,
&history_x1, &history_y1,
&history_x2, &history_y2);
@@ -582,6 +581,8 @@ gimp_meter_expose_event (GtkWidget *widget,
history_x2 = ceil (history_x2);
history_y2 = ceil (history_y2);
+ cairo_clip (cr);
+
/* paint history background */
gdk_cairo_set_source_color (cr, &style->light[state]);
cairo_paint (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]