diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 13:25:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 13:25:35 +0000 |
| commit | 2d7ca416f052d0b8ffa37eaf02e3ac636dc5f811 (patch) | |
| tree | cc06fdddc425f3231b79772cdd70c54e70cf296f /terminal.h | |
| parent | vt: tidy lazy initialization of escape parameters (diff) | |
render: center grid in window
Instead of placing the upper left corner of the grid at 0,0 in the
window, center it.
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -274,6 +274,8 @@ struct terminal { int scale; int width; /* pixels */ int height; /* pixels */ + int x_margin; + int y_margin; int cols; /* number of columns */ int rows; /* number of rows */ int cell_width; /* pixels per cell, x-wise */ |
