mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
term: resize: pre-calculate right/bottom margins
This commit is contained in:
parent
7fd380f253
commit
d804bc8579
4 changed files with 51 additions and 55 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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue