[telegnome] Use gdk_cairo_rectangle
- From: Colin Watson <cjwatson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [telegnome] Use gdk_cairo_rectangle
- Date: Tue, 2 Feb 2016 13:02:52 +0000 (UTC)
commit d598a46fe9ebb65d0911d3d961a1791cc514940e
Author: Colin Watson <cjwatson debian org>
Date: Tue Feb 2 13:02:13 2016 +0000
Use gdk_cairo_rectangle
* src/pixpack.c (tg_pixpack_paint): Abbreviate slightly using
gdk_cairo_rectangle.
src/pixpack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/pixpack.c b/src/pixpack.c
index 598c506..4abec82 100644
--- a/src/pixpack.c
+++ b/src/pixpack.c
@@ -232,7 +232,7 @@ tg_pixpack_paint(TgPixPack* pixpack, GdkRectangle *area)
cr = gdk_cairo_create(GDK_DRAWABLE(window));
gdk_cairo_set_source_pixbuf(cr, private->pixbuf, area->x, area->y);
- cairo_rectangle(cr, area->x, area->y, area->width, area->height);
+ gdk_cairo_rectangle(cr, area);
cairo_clip(cr);
cairo_scale(cr,
area->width / gdk_pixbuf_get_width(private->pixbuf),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]