summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-18 01:23:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-18 01:23:23 +0000
commit368f15ca59c2383346c5aa2e67142c6b5ced0766 (patch)
tree613f40fb30e62dfca714907fafcdf15231a3f2cf /gdk/gdkwindow.c
parentd1bc66a20cdf7692282fdfb85e0dd7af98ead25d (diff)
downloadgdk-pixbuf-368f15ca59c2383346c5aa2e67142c6b5ced0766.tar.gz
Use cairo_set_device_offset().
2005-02-24 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c: Use cairo_set_device_offset(). * gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c gdk/win32/gdkpixmap-win32.c: Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the drawable. Add _gdk_drawable_win32_finish() to clean up resources when a drawable is destroyed. * gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c (blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use acquire/release_dc when getting a DC to use with a GC or for blitting from a pixmap. * gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface() * gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am: Remove gdk_screen_get_pango_context(), draw_glyph[_transformed] implementations. * gdk/win32/gdkdrawable-win32.c: Remove gdk_draw_rectangle_alpha_libgtk_only()
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1d36a8070..808926f20 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -974,8 +974,8 @@ gdk_window_begin_paint_region (GdkWindow *window,
MAX (clip_box.width, 1), MAX (clip_box.height, 1), -1);
paint->surface = _gdk_drawable_ref_cairo_surface (paint->pixmap);
- _gdk_windowing_set_surface_device_offset (paint->surface,
- - paint->x_offset, - paint->y_offset);
+ cairo_surface_set_device_offset (paint->surface,
+ - paint->x_offset, - paint->y_offset);
for (list = private->paint_stack; list != NULL; list = list->next)
{