aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-24 17:38:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-24 17:38:11 +0000
commitd804bc8579c93a57f16214a04b5b625ae380eb78 (patch)
tree3f0409c4233726c8e3a49c86c8cbcee8160e5758 /terminal.h
parentcsi: delete all sixels on the 'alt' grid when switching back to 'normal' (diff)
term: resize: pre-calculate right/bottom margins
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 55311408..53fecf6b 100644
--- a/terminal.h
+++ b/terminal.h
@@ -237,8 +237,12 @@ struct terminal {
int scale;
int width; /* pixels */
int height; /* pixels */
- int x_margin;
- int y_margin;
+ struct {
+ int left;
+ int right;
+ int top;
+ int bottom;
+ } margins;
int cols; /* number of columns */
int rows; /* number of rows */
int cell_width; /* pixels per cell, x-wise */