mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-06 04:06:06 -05:00
render: csd: sort geometry entries
This commit is contained in:
parent
b725ac4c73
commit
0b265cc9a5
1 changed files with 5 additions and 5 deletions
10
render.c
10
render.c
|
|
@ -664,15 +664,15 @@ render_csd(struct terminal *term)
|
|||
{
|
||||
LOG_INFO("rendering CSD");
|
||||
|
||||
const int border_width = 2 * term->scale;
|
||||
const int border_width = 1 * term->scale;
|
||||
const int title_height = 20 * term->scale;
|
||||
|
||||
const int geom[5][4] = {
|
||||
{0, -title_height, term->width, title_height},
|
||||
{-border_width, -title_height - border_width, term->width + 2 * border_width, border_width},
|
||||
{-border_width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width},
|
||||
{term->width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width},
|
||||
{-border_width, term->height, term->width + 2 * border_width, border_width},
|
||||
{-border_width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width}, /* left */
|
||||
{term->width, -title_height - border_width, border_width, term->height + title_height + 2 * border_width}, /* right */
|
||||
{-border_width, -title_height - border_width, term->width + 2 * border_width, border_width}, /* top */
|
||||
{-border_width, term->height, term->width + 2 * border_width, border_width}, /* bottom */
|
||||
};
|
||||
|
||||
for (size_t i = 0; i < 5; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue