aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2009-12-21 02:29:17 -0800
committerJohn Hawthorn <john.hawthorn@gmail.com>2009-12-21 02:29:17 -0800
commit556d236a4f2bebbf17ac3f1bd11f0ceb7b7eab6e (patch)
tree999495db167bac8b01ffea0af8b66404c48622bd
parentc97d443e62bd27755fa62e3f5dc8836c80ae5fc7 (diff)
downloadmirror-meh-556d236a4f2bebbf17ac3f1bd11f0ceb7b7eab6e.tar.gz
mirror-meh-556d236a4f2bebbf17ac3f1bd11f0ceb7b7eab6e.tar.bz2
mirror-meh-556d236a4f2bebbf17ac3f1bd11f0ceb7b7eab6e.zip
don't rescale on expose events
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 8bbaa1c..19c1646 100644
--- a/src/main.c
+++ b/src/main.c
@@ -138,10 +138,10 @@ void handleevent(XEvent *event){
break;
case Expose:
if(curimg){
- if(curimg->state >= LOADED)
- curimg->state = LOADED;
- else if(curimg->state > FASTLOADED)
- curimg->state = FASTLOADED;
+ if(curimg->state >= SCALED)
+ curimg->state = SCALED;
+ else if(curimg->state > FASTSCALED)
+ curimg->state = FASTSCALED;
}
break;
case KeyPress: