diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:58 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:58 -0700 |
commit | c8bd15377ed657b7afbed1f74c6b052e06b19d23 (patch) | |
tree | d91533bb7f930f35922eec83fabd2381969307bc /mutt_curses.h | |
parent | af5fc52680152562bbcc8596ce6ae21a57db51d1 (diff) |
Fix remaining direct usages of COLS/LINES to use mutt window functions.
Most of these were just message update/clearing.
Diffstat (limited to 'mutt_curses.h')
-rw-r--r-- | mutt_curses.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mutt_curses.h b/mutt_curses.h index 1156c4ac..d3efd70c 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -64,8 +64,8 @@ #undef lines #endif /* lines */ -#define CLEARLINE(x) move(x,0), clrtoeol() -#define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x) +#define CLEARLINE(win,x) mutt_window_clearline(win, x) +#define CENTERLINE(win,x,y) mutt_window_move(win, y, (win->cols-strlen(x))/2), addstr(x) #define BEEP() do { if (option (OPTBEEP)) beep(); } while (0) #if ! (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET)) |