diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 17:38:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 17:38:11 +0000 |
| commit | d804bc8579c93a57f16214a04b5b625ae380eb78 (patch) | |
| tree | 3f0409c4233726c8e3a49c86c8cbcee8160e5758 /terminal.h | |
| parent | csi: 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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 */ |
