app: simplify GimpOverlayFrame drawing a lot
Thanks to Benjamin Otte for some tips.
This commit is contained in:
parent
086cfc3f03
commit
c3a4825a8a
1 changed files with 4 additions and 12 deletions
|
|
@ -178,10 +178,8 @@ gimp_overlay_frame_expose (GtkWidget *widget,
|
|||
DEG_TO_RAD (90),
|
||||
DEG_TO_RAD (180));
|
||||
cairo_close_path (cr);
|
||||
}
|
||||
else
|
||||
{
|
||||
gdk_cairo_region (cr, eevent->region);
|
||||
|
||||
cairo_clip (cr);
|
||||
}
|
||||
|
||||
/* #define BLING 1 */
|
||||
|
|
@ -238,18 +236,12 @@ gimp_overlay_frame_expose (GtkWidget *widget,
|
|||
cairo_set_source (cr, gradient);
|
||||
|
||||
cairo_pattern_destroy (gradient);
|
||||
|
||||
cairo_clip (cr);
|
||||
}
|
||||
|
||||
#endif /* BLING */
|
||||
|
||||
cairo_paint (cr);
|
||||
|
||||
#else
|
||||
|
||||
cairo_fill (cr);
|
||||
|
||||
#endif
|
||||
|
||||
cairo_destroy (cr);
|
||||
|
||||
return GTK_WIDGET_CLASS (parent_class)->expose_event (widget, eevent);
|
||||
|
|
|
|||
Loading…
Reference in a new issue