From 3f00d36f96adfa432e8b64f739749fd56d29338e Mon Sep 17 00:00:00 2001 From: lshprung Date: Sat, 27 Mar 2021 17:40:03 -0700 Subject: Fixed caching bug --- draw.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/draw.c b/draw.c index 3f261b5..3512c86 100644 --- a/draw.c +++ b/draw.c @@ -101,6 +101,7 @@ int main(int argc, char **argv){ prev_width = WIDTH; prev_height = HEIGHT; + //update to show menu update_display(false); //update highlighting for loaded location @@ -209,9 +210,11 @@ void update_display(bool resize){ draw_win(info_win, "INFO"); update_col(0, 1, resize); - //start with hover on the first group, draw the entries from the selected group, true_hover is over the groups (rather than the entries) - update_col(1, 1, resize); - update_col(2, 0, resize); + //start with hover on the first group, draw the entries from the selected group, true_hover is over the groups (rather than the entries) (do update after first draw, only after subsequent (resize) updates) + if(resize){ + update_col(1, 1, resize); + update_col(2, 0, resize); + } curs_set(0); //hide the cursor //move(3, (WIDTH/4)+10); refresh(); -- cgit