diff options
author | lshprung <lshprung@yahoo.com> | 2021-03-27 17:40:03 -0700 |
---|---|---|
committer | lshprung <lshprung@yahoo.com> | 2021-03-27 17:40:03 -0700 |
commit | 3f00d36f96adfa432e8b64f739749fd56d29338e (patch) | |
tree | dd95dbf85e0abd55e2534b98cc65e74b5f1b0dcf /draw.c | |
parent | f4c414838a72ee81f11feab8b4086772bc4afaeb (diff) |
Fixed caching bug
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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(); |