aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/jpg/jpg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/jpg/jpg.c')
-rw-r--r--src/cmd/jpg/jpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/jpg/jpg.c b/src/cmd/jpg/jpg.c
index fafa9b8c..f74da4c5 100644
--- a/src/cmd/jpg/jpg.c
+++ b/src/cmd/jpg/jpg.c
@@ -38,7 +38,7 @@ eresized(int new)
if(image == nil)
return;
r = rectaddpt(image->clipr, subpt(screen->r.min, image->clipr.min));
- if(!new)
+ if(!new && !winsize)
drawresizewindow(r);
draw(screen, r, image, nil, image->r.min);
flushimage(display, 1);