From 34d5a238a38ae852511587c6ef741bca6f2312e9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 25 Mar 2006 18:05:22 +0000 Subject: [PATCH] improving the update speed of curses windows over my slow ssh connection, less redraws. --- src/eressea/gmtool.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/eressea/gmtool.c b/src/eressea/gmtool.c index d125bc3a0..27f9e61cf 100644 --- a/src/eressea/gmtool.c +++ b/src/eressea/gmtool.c @@ -1103,7 +1103,7 @@ run_mapper(void) } for (wnd=wnd_last;wnd!=NULL;wnd=wnd->prev) { if (wnd->update && wnd->paint) { - if (wnd->update & 2) wclear(wnd->handle); + // if (wnd->update & 2) wclear(wnd->handle); if (wnd->update & 1) { wnd->paint(wnd, &st); } @@ -1111,7 +1111,10 @@ run_mapper(void) } } draw_cursor(st.wnd_map->handle, st.selected, vi, &st.cursor, 1); - for (wnd=wnd_first;wnd!=NULL;wnd=wnd->next) wrefresh(wnd->handle); + for (wnd=wnd_first;wnd!=NULL;wnd=wnd->next) { + wnoutrefresh(wnd->handle); + } + doupdate(); draw_cursor(st.wnd_map->handle, st.selected, vi, &st.cursor, 0); handlekeys(&st);