static void
gui_internal_cmd_menu2(struct gui_priv *this)
{
+ if (this->root.children)
+ return;
gui_internal_cmd_menu(this, NULL, 0);
}
}
dbg(1,"w=%d h=%d children=%p\n", w, h, this->root.children);
navit_handle_resize(this->nav, w, h);
- if (this->root.children && changed) {
- gui_internal_prune_menu(this, NULL);
- gui_internal_menu_root(this);
+ if (this->root.children) {
+ if (changed) {
+ gui_internal_prune_menu(this, NULL);
+ gui_internal_menu_root(this);
+ } else {
+ gui_internal_menu_render(this);
+ }
}
}