mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
ngl: Remove duplicate check
We check the extents, so there's no need to check overlap before.
This commit is contained in:
parent
24ec2cc6a6
commit
1fd534ef1e
@ -173,10 +173,7 @@ get_render_region (GdkSurface *surface,
|
||||
*/
|
||||
damage = gdk_draw_context_get_frame_region (GDK_DRAW_CONTEXT (context));
|
||||
|
||||
if (cairo_region_contains_rectangle (damage, &whole_surface) == CAIRO_REGION_OVERLAP_IN)
|
||||
return NULL;
|
||||
|
||||
/* If the extents match the full-scene, do the same as above */
|
||||
/* If the extents match the full-scene, return NULL */
|
||||
cairo_region_get_extents (damage, &extents);
|
||||
if (gdk_rectangle_equal (&extents, &whole_surface))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user