From 2d7ca416f052d0b8ffa37eaf02e3ac636dc5f811 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 27 Aug 2019 15:25:35 +0200 Subject: render: center grid in window Instead of placing the upper left corner of the grid at 0,0 in the window, center it. --- terminal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index d9c94b70..6f373a14 100644 --- a/terminal.h +++ b/terminal.h @@ -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 */ -- cgit v1.3