summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c9
1 files 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();