aboutsummaryrefslogtreecommitdiff
path: root/src/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 0bb2131..9f88001 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -636,12 +636,12 @@ static int get_size(const char *a, struct frame *fr, int *wp, int *hp)
hs = strdup(x+1);
if ( strcmp(ws, "fit") == 0 ) {
- *wp = fr->w;
+ *wp = fr->w - (fr->lop.pad_l+fr->lop.pad_r);
} else {
*wp = strtoul(ws, NULL, 10);
}
if ( strcmp(ws, "fit") == 0 ) {
- *hp = fr->h;
+ *hp = fr->h - (fr->lop.pad_t+fr->lop.pad_b);
} else {
*hp = strtoul(hs, NULL, 10);
}