aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tbi
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-11-09 10:52:42 +0300
committerJoursoir <chat@joursoir.net>2021-11-09 10:52:42 +0300
commit01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0 (patch)
treeb24c6e6cfcf1d9b1a2bd5d921efe636e5de54b97 /lib/tbi
parent2498e52020252a6f915c6c5242509fe06e6b02e8 (diff)
downloadufm-01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0.tar.gz
ufm-01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0.tar.bz2
ufm-01c9c0c71bedbf8a82c20f41ab8b1d9f8b156af0.zip
tbi/win: fix typos in macros
Diffstat (limited to 'lib/tbi')
-rw-r--r--lib/tbi/win.c6
1 files 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)