The function wCoreCreate in wMenuCreate is replaced by the wcore creation and the wcore mapping. In this step, the function do the same code but now, in functions that are screen independent.
Signed-off-by: Rodolfo García Peñas (kix) <[email protected]> --- src/menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/menu.c b/src/menu.c index e5809bd..6c141e2 100644 --- a/src/menu.c +++ b/src/menu.c @@ -196,7 +196,13 @@ WMenu *wMenuCreate(WScreen *screen, const char *title, int main_menu) menu->frame->on_click_right = menuCloseClick; - menu->menu = wCoreCreate(menu->frame->core, 0, menu->frame->top_width, menu->frame->core->width, 10); + menu->menu = wcore_create(menu->frame->core->width, 10); + wcore_map(menu->menu, menu->frame->core, + menu->frame->core->screen_ptr, 0, + menu->frame->top_width, 0, + menu->frame->core->screen_ptr->w_depth, + menu->frame->core->screen_ptr->w_visual, + menu->frame->core->screen_ptr->w_colormap); menu->menu->descriptor.parent = menu; menu->menu->descriptor.parent_type = WCLASS_MENU; -- 1.8.4.rc3 -- To unsubscribe, send mail to [email protected].
