aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-15 18:48:13 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-15 18:48:13 -0700
commitd9463fc66e935f5cdd4b5f8a7a73081ac24977ed (patch)
tree56a890dec233b3a4c582fd8715390a21a9209acd
parent1b9ee887b6cb5f6cf0824f2e3b5ff503daa6f0be (diff)
downloadmirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.tar.gz
mirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.tar.bz2
mirror-meh-d9463fc66e935f5cdd4b5f8a7a73081ac24977ed.zip
fixed resize aspect bug
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
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);