Changeset f2416ec3 in mainline for uspace/lib/ui/src/menu.c
- Timestamp:
- 2021-05-26T07:40:59Z (4 years ago)
- Children:
- 6baab83
- Parents:
- 344f8b9
- git-author:
- Jiri Svoboda <jiri@…> (2021-05-25 18:40:50)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-05-26 07:40:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menu.c
r344f8b9 rf2416ec3 49 49 #include <ui/menuentry.h> 50 50 #include <ui/resource.h> 51 #include <ui/window.h> 51 52 #include "../private/menubar.h" 52 53 #include "../private/menu.h" … … 170 171 ui_menu_geom_t *geom) 171 172 { 173 ui_resource_t *res; 172 174 gfx_coord2_t edim; 173 175 gfx_coord_t frame_w; 174 176 gfx_coord_t frame_h; 175 177 176 if (menu->mbar->res->textmode) { 178 res = ui_window_get_res(menu->mbar->window); 179 180 if (res->textmode) { 177 181 frame_w = menu_frame_w_text; 178 182 frame_h = menu_frame_h_text; … … 242 246 params.rect = geom.outer_rect; 243 247 244 rc = ui_popup_create(menu->mbar->ui, ¶ms, &popup); 248 rc = ui_popup_create(menu->mbar->ui, menu->mbar->window, ¶ms, 249 &popup); 245 250 if (rc != EOK) 246 251 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.