mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 18:26:22 +00:00
Added win_page_off
This commit is contained in:
@@ -132,6 +132,21 @@ win_refresh(ProfWin *window)
|
||||
prefresh(window->win, window->y_pos, 0, 1, 0, rows-3, cols-1);
|
||||
}
|
||||
|
||||
void
|
||||
win_page_off(ProfWin *window)
|
||||
{
|
||||
window->paged = 0;
|
||||
|
||||
int rows = getmaxy(stdscr);
|
||||
int y = getcury(window->win);
|
||||
int size = rows - 3;
|
||||
|
||||
window->y_pos = y - (size - 1);
|
||||
if (window->y_pos < 0) {
|
||||
window->y_pos = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
win_presence_colour_on(ProfWin *window, const char * const presence)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user