summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkgeometry-win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/win32/gdkgeometry-win32.c')
-rw-r--r--gdk/win32/gdkgeometry-win32.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdk/win32/gdkgeometry-win32.c b/gdk/win32/gdkgeometry-win32.c
index 044479d842..6cdb860cc2 100644
--- a/gdk/win32/gdkgeometry-win32.c
+++ b/gdk/win32/gdkgeometry-win32.c
@@ -252,26 +252,26 @@ gdk_window_clip_changed (GdkWindow *window,
obj = (GdkWindowObject *) window;
impl = GDK_WINDOW_IMPL_WIN32 (obj->impl);
- old_clip_region = cairo_region_create_rectangle (old_clip);
- new_clip_region = cairo_region_create_rectangle (new_clip);
+ old_clip_region = gdk_region_rectangle (old_clip);
+ new_clip_region = gdk_region_rectangle (new_clip);
/* Trim invalid region of window to new clip rectangle
*/
if (obj->update_area)
- cairo_region_intersect (obj->update_area, new_clip_region);
+ gdk_region_intersect (obj->update_area, new_clip_region);
/* Invalidate newly exposed portion of window
*/
- cairo_region_subtract (new_clip_region, old_clip_region);
- if (!cairo_region_is_empty (new_clip_region))
+ gdk_region_subtract (new_clip_region, old_clip_region);
+ if (!gdk_region_empty (new_clip_region))
gdk_window_tmp_unset_bg (window);
else
{
- cairo_region_destroy (new_clip_region);
+ gdk_region_destroy (new_clip_region);
new_clip_region = NULL;
}
- cairo_region_destroy (old_clip_region);
+ gdk_region_destroy (old_clip_region);
return new_clip_region;
}
@@ -288,7 +288,7 @@ gdk_window_post_scroll (GdkWindow *window,
gdk_window_invalidate_region (window, new_clip_region, FALSE);
g_print ("gdk_window_post_scroll\n");
- cairo_region_destroy (new_clip_region);
+ gdk_region_destroy (new_clip_region);
}
#endif