From 4f77b0235d1a3544007d627ab058177c4379bff0 Mon Sep 17 00:00:00 2001
From: Lance Dillon <riffraff169@yahoo.com>
Date: Sat, 8 Jun 2013 12:40:41 -0400
Subject: [PATCH] allow draw_pixbuf to specify width and height of -1

Conflicts:
	src/post_modules/GTK3/configure.in
---
 src/post_modules/GTK2/source/common_draw.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/post_modules/GTK2/source/common_draw.inc b/src/post_modules/GTK2/source/common_draw.inc
index dba7d2e55c..9c5cba8161 100644
--- a/src/post_modules/GTK2/source/common_draw.inc
+++ b/src/post_modules/GTK2/source/common_draw.inc
@@ -166,7 +166,7 @@ void draw_pixbuf(GDK2.GC gc, GDK2.Pixbuf pixbuf, int xsrc, int ysrc,
   INT_TYPE xs,ys,xd,yd,w,h;
   get_all_args("draw_pixbuf",args,"%o%o%+%+%+%+%i%i",
 		&g,&p,&xs,&ys,&xd,&yd,&w,&h);
-  if (w>0 && h>0)
+  if ((w>0 && h>0) || (w==-1 && h==-1))
       gdk_draw_pixbuf(TWIN,GC(g),GDK_PIXBUF(get_gobject(p)),xs,ys,xd,yd,w,h,
 		    GDK_RGB_DITHER_NONE,0,0);
   RETURN_THIS();
-- 
GitLab