diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-21 04:07:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-21 04:10:07 +0100 |
commit | 2a4ffd4a596fb3790683abd0747b1c6f53fb4a3f (patch) | |
tree | fd7b22a5d775049dbd722cb4696517561183e99e /gtk | |
parent | 8202f333ea0d13285b50fa40b385eb444a6e8972 (diff) | |
download | gtk+-2a4ffd4a596fb3790683abd0747b1c6f53fb4a3f.tar.gz |
surface: Simplify gdk_surface_invalidate_region()
Remove duplicate functions and unused arguments.
Functionality is identical otherwise.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkdebugupdates.c | 2 | ||||
-rw-r--r-- | gtk/gtkwidget.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkdebugupdates.c b/gtk/gtkdebugupdates.c index 672afae4d4..b371603bc4 100644 --- a/gtk/gtkdebugupdates.c +++ b/gtk/gtkdebugupdates.c @@ -180,7 +180,7 @@ gtk_window_manage_updates (GtkWidget *widget, cairo_region_union (region, draw->region); } gtk_debug_updates_print (updates, region, "Queued update"); - gdk_surface_invalidate_region (gtk_widget_get_surface (widget), region, TRUE); + gdk_surface_invalidate_region (gtk_widget_get_surface (widget), region); cairo_region_destroy (region); /* Then remove all outdated regions */ diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 989b2d09d6..257b0e7b98 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4338,7 +4338,7 @@ gtk_widget_queue_draw_region (GtkWidget *widget, invalidate: gtk_debug_updates_add (windowed_parent, region2); - gdk_surface_invalidate_region (_gtk_widget_get_surface (widget), region2, TRUE); + gdk_surface_invalidate_region (_gtk_widget_get_surface (widget), region2); cairo_region_destroy (region2); |