mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
scrolledwindow: Don't use LIGHTEN operator
For the overshoot gradient, using OVER is fine. Simplifies the code and increases performance.
This commit is contained in:
parent
d941e5f0c0
commit
a6f935bb77
@ -1639,9 +1639,6 @@ gtk_scrolled_window_draw_overshoot (GtkScrolledWindow *scrolled_window,
|
|||||||
if (!_gtk_scrolled_window_get_overshoot (scrolled_window, &overshoot_x, &overshoot_y))
|
if (!_gtk_scrolled_window_get_overshoot (scrolled_window, &overshoot_x, &overshoot_y))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
cairo_push_group (cr);
|
|
||||||
cairo_set_operator (cr, CAIRO_OPERATOR_LIGHTEN);
|
|
||||||
|
|
||||||
gtk_scrolled_window_relative_allocation (widget, &relative_allocation);
|
gtk_scrolled_window_relative_allocation (widget, &relative_allocation);
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (widget);
|
context = gtk_widget_get_style_context (widget);
|
||||||
@ -1706,9 +1703,6 @@ gtk_scrolled_window_draw_overshoot (GtkScrolledWindow *scrolled_window,
|
|||||||
|
|
||||||
cairo_pattern_destroy (pattern);
|
cairo_pattern_destroy (pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_pop_group_to_source (cr);
|
|
||||||
cairo_paint (cr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user