improvements to the rendering

This commit is contained in:
nova
2026-05-06 22:21:33 +02:00
parent 1a85a2d810
commit 41293c6afd
2 changed files with 20 additions and 18 deletions
+15 -8
View File
@@ -77,7 +77,6 @@ int main(){
pthread_cond_signal(&cond_top);
pthread_cond_signal(&cond_mid);
pthread_cond_signal(&cond_lft);
user_interactions();
render_pass();
timeout(SETTINGS_CURSES_TIMEOUT);
@@ -97,7 +96,7 @@ int main(){
pthread_cond_signal(&cond_mid);
pthread_cond_signal(&cond_lft);
status &= ~(STATUS_RUN_BACKEND);
status |= STATUS_UPDATE_SCREEN_PRINTED;
} else {
status &= ~(STATUS_RELOAD_DIRECTORY | STATUS_DELTA_TIME);
}
@@ -135,6 +134,9 @@ int main(){
void render_pass(){
if (status & STATUS_UPDATE_SCREEN_CLEAR) {
clear();
}
if (status & STATUS_UPDATE_SCREEN_RESIZE) {
wresize(win_t, 1, terminal_width);
@@ -151,18 +153,23 @@ void render_pass(){
mvwin(win_b, terminal_height-1, 0);
}
if (status & STATUS_UPDATE_SCREEN_MASK) {
werase(win_t);
werase(win_l);
werase(win_m);
werase(win_r);
werase(win_b);
window_top(win_t);
window_lft(win_l);
window_mid(win_m);
window_rgt(win_r);
window_btm(win_b);
wrefresh(win_t);
wrefresh(win_l);
wrefresh(win_m);
wrefresh(win_r);
wrefresh(win_b);
wnoutrefresh(win_t);
wnoutrefresh(win_l);
wnoutrefresh(win_m);
wnoutrefresh(win_r);
wnoutrefresh(win_b);
doupdate();
status &= ~(STATUS_UPDATE_SCREEN_MASK);
}
}