[gnome-applets/wip/segeiger/windowpicker: 7/18] windowpicker: rename tmp to unscaled_pixbuf
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 7/18] windowpicker: rename tmp to unscaled_pixbuf
- Date: Sun, 13 Oct 2019 13:00:10 +0000 (UTC)
commit ce163f51ba592f15d7539e0b429fa91b4b355890
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Oct 12 15:14:48 2019 +0200
windowpicker: rename tmp to unscaled_pixbuf
windowpicker/src/task-item.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 29539ca5e..b91f33e68 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -236,9 +236,11 @@ task_item_sized_pixbuf_for_window (TaskItem *item,
if (MAX (width, height) != size) {
gdouble scale = (gdouble) size / (gdouble) MAX (width, height);
- GdkPixbuf *tmp = pixbuf;
- pixbuf = gdk_pixbuf_scale_simple (tmp, (gint) (width * scale), (gint) (height * scale),
GDK_INTERP_HYPER);
- g_object_unref (tmp);
+ GdkPixbuf *unscaled_pixbuf;
+
+ unscaled_pixbuf = pixbuf;
+ pixbuf = gdk_pixbuf_scale_simple (unscaled_pixbuf, (gint) (width * scale), (gint) (height * scale),
GDK_INTERP_HYPER);
+ g_object_unref (unscaled_pixbuf);
}
return pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]