[telegnome] Slight adjustment to Cairo conversion



commit 1796ff78efac478a989150bda7b4aec492f503d9
Author: Colin Watson <cjwatson debian org>
Date:   Tue Feb 2 12:59:04 2016 +0000

    Slight adjustment to Cairo conversion
    
    * src/pixpack.c (tg_pixpack_paint): Tweak
    gdk_cairo_set_source_pixbuf arguments to be more faithful to the
    previous pre-Cairo code.

 src/pixpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/pixpack.c b/src/pixpack.c
index 9e3a9fb..598c506 100644
--- a/src/pixpack.c
+++ b/src/pixpack.c
@@ -231,7 +231,7 @@ tg_pixpack_paint(TgPixPack* pixpack, GdkRectangle *area)
        return;
 
     cr = gdk_cairo_create(GDK_DRAWABLE(window));
-    gdk_cairo_set_source_pixbuf(cr, private->pixbuf, 0, 0);
+    gdk_cairo_set_source_pixbuf(cr, private->pixbuf, area->x, area->y);
     cairo_rectangle(cr, area->x, area->y, area->width, area->height);
     cairo_clip(cr);
     cairo_scale(cr,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]