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.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/jpg/jpg.c b/src/cmd/jpg/jpg.c
index 82dba4d7..fafa9b8c 100644
--- a/src/cmd/jpg/jpg.c
+++ b/src/cmd/jpg/jpg.c
@@ -37,10 +37,9 @@ eresized(int new)
}
if(image == nil)
return;
- r = insetrect(screen->clipr, Edge+Border);
- r.max.x = r.min.x+Dx(image->r);
- r.max.y = r.min.y+Dy(image->r);
- border(screen, r, -Border, nil, ZP);
+ r = rectaddpt(image->clipr, subpt(screen->r.min, image->clipr.min));
+ if(!new)
+ drawresizewindow(r);
draw(screen, r, image, nil, image->r.min);
flushimage(display, 1);
}