]> Pileus Git - ~andy/gtk/commitdiff
Implement GdkDrawableImplWin32::draw_pixbuf
authorHans Breuer <hans@breuer.org>
Sun, 26 Jul 2009 17:12:30 +0000 (19:12 +0200)
committerHans Breuer <hans@breuer.org>
Sun, 26 Jul 2009 17:14:08 +0000 (19:14 +0200)
gdk/win32/gdkdrawable-win32.c

index 77b0206f572de173cd2e3d4dfe5c3db496f48e3e..f97af80f9f7b33698dcf434e65ec8cb93f69aede 100644 (file)
@@ -115,6 +115,18 @@ static void gdk_win32_draw_image     (GdkDrawable     *drawable,
                                      gint             ydest,
                                      gint             width,
                                      gint             height);
+static void gdk_win32_draw_pixbuf     (GdkDrawable     *drawable,
+                                     GdkGC           *gc,
+                                     GdkPixbuf       *pixbuf,
+                                     gint             src_x,
+                                     gint             src_y,
+                                     gint             dest_x,
+                                     gint             dest_y,
+                                     gint             width,
+                                     gint             height,
+                                     GdkRgbDither     dither,
+                                     gint             x_dither,
+                                     gint             y_dither);
 
 static cairo_surface_t *gdk_win32_ref_cairo_surface (GdkDrawable *drawable);
      
@@ -155,6 +167,7 @@ _gdk_drawable_impl_win32_class_init (GdkDrawableImplWin32Class *klass)
   drawable_class->draw_segments = gdk_win32_draw_segments;
   drawable_class->draw_lines = gdk_win32_draw_lines;
   drawable_class->draw_image = gdk_win32_draw_image;
+  drawable_class->draw_pixbuf = gdk_win32_draw_pixbuf;
   
   drawable_class->ref_cairo_surface = gdk_win32_ref_cairo_surface;
   
@@ -1759,6 +1772,27 @@ gdk_win32_draw_image (GdkDrawable     *drawable,
                   xsrc, ysrc, xdest, ydest, width, height);
 }
 
+static void
+gdk_win32_draw_pixbuf (GdkDrawable     *drawable,
+                       GdkGC           *gc,
+                       GdkPixbuf       *pixbuf,
+                       gint             src_x,
+                       gint             src_y,
+                       gint             dest_x,
+                       gint             dest_y,
+                       gint             width,
+                       gint             height,
+                       GdkRgbDither     dither,
+                       gint             x_dither,
+                       gint             y_dither)
+{
+  GdkDrawable *wrapper = GDK_DRAWABLE_IMPL_WIN32 (drawable)->wrapper;
+  GDK_DRAWABLE_CLASS (_gdk_drawable_impl_win32_parent_class)->draw_pixbuf (wrapper, gc, pixbuf,
+                                                                            src_x, src_y, dest_x, dest_y,
+                                                                            width, height,
+                                                                            dither, x_dither, y_dither);
+}
+
 /**
  * _gdk_win32_drawable_acquire_dc
  * @drawable: a Win32 #GdkDrawable implementation