From 01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 9 Nov 2021 10:52:42 +0300 Subject: tbi/win: fix typos in macros --- lib/tbi/win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tbi/win.c b/lib/tbi/win.c index 7e3b413..3d82e58 100644 --- a/lib/tbi/win.c +++ b/lib/tbi/win.c @@ -10,12 +10,12 @@ #include "win.h" #define CHECK_POSITION(win, x, y) \ - if(x < 0 || y < 0 || x >= w->width || y >= w->height) \ + if(x < 0 || y < 0 || x >= win->width || y >= win->height) \ return FALSE #define SET_WINDOW_CHAR(win, col, row, character, attrib) \ - w->text[row][col] = character; \ - w->attr[row][col] = attrib + win->text[row][col] = character; \ + win->attr[row][col] = attrib #define SET_WINDOW_CHAR2(win, col, row, character) \ SET_WINDOW_CHAR(win, col, row, character, win->cur_attr) -- cgit v1.2.3-18-g5258