diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-06-15 18:48:13 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-06-15 18:48:13 -0700 |
commit | d9463fc66e935f5cdd4b5f8a7a73081ac24977ed (patch) | |
tree | 56a890dec233b3a4c582fd8715390a21a9209acd | |
parent | 1b9ee887b6cb5f6cf0824f2e3b5ff503daa6f0be (diff) | |
download | mirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.tar.gz mirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.tar.bz2 mirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.zip |
fixed resize aspect bug
-rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |