From d9463fc66e935f5cdd4b5f8a7a73081ac24977ed Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 15 Jun 2008 18:48:13 -0700 Subject: fixed resize aspect bug --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index c116fab..ac1ce37 100644 --- a/src/main.c +++ b/src/main.c @@ -214,6 +214,7 @@ void run(struct imagenode *image){ img = NULL; width = event.xconfigure.width; height = event.xconfigure.height; + redraw = 1; } break; case Expose: @@ -291,6 +292,10 @@ void run(struct imagenode *image){ }else{ xoffset = 0; yoffset = 0; + fillw = 0; + fillh = 0; + imagewidth = width; + imageheight = height; } img = create_image_from_buffer(buf, imagewidth, imageheight, bufwidth, bufheight); assert(img); -- cgit v1.2.3