mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-10 04:27:45 -05:00
render: center grid in window
Instead of placing the upper left corner of the grid at 0,0 in the window, center it.
This commit is contained in:
parent
382bea8309
commit
2d7ca416f0
2 changed files with 44 additions and 31 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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue