all repos — openbox @ 06202e2badd1c519c62defe820094e28f6708d5e

openbox fork - make it a bit more like ryudo

dont scale images to 0 px wide or tall
Dana Jansens danakj@orodu.net
commit

06202e2badd1c519c62defe820094e28f6708d5e

parent

b338e27b3217375d07bfbddd57f3372430919085

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M render/image.crender/image.c

@@ -139,6 +139,9 @@ dh = area->height;

dw = (gint)(dh * ((gdouble)sw / sh)); } + if (!(dw && dh)) + return; /* XXX sanity check */ + if (sw != dw || sh != dh) { /*if (!(rgba->cache && dw == rgba->cwidth && dh == rgba->cheight))*/ { g_free(rgba->cache);