From d804bc8579c93a57f16214a04b5b625ae380eb78 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 24 Feb 2020 18:38:11 +0100 Subject: term: resize: pre-calculate right/bottom margins --- terminal.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 55311408..53fecf6b 100644 --- a/terminal.h +++ b/terminal.h @@ -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 */ -- cgit v1.3