FPS now controlled by delay to reduce cpu usage. Added last key overlay.

This commit is contained in:
Sheldon Lee
2020-06-22 00:58:05 +01:00
parent 75f670988c
commit 8361724ad5
2 changed files with 38 additions and 16 deletions
-1
View File
@@ -97,7 +97,6 @@ void drawGrid(Grid* grid)
width = grid->width;
height = grid->size/width;
// Init color pair init_pair(index, fg, bg);
init_pair(1, COLOR_BLUE, COLOR_WHITE);
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
if (grid->state[toIndex(grid, x, y)]){