Changeset f251883 in mainline for uspace/lib/ui/src/menu.c
- Timestamp:
- 2021-04-09T22:41:22Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f536a16
- Parents:
- 62223ec
- git-author:
- Jiri Svoboda <jiri@…> (2021-04-01 21:31:24)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-04-09 22:41:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/menu.c
r62223ec rf251883 163 163 ui_menu_geom_t *geom) 164 164 { 165 ui_menu_entry_t *mentry;166 165 gfx_coord2_t edim; 167 166 gfx_coord_t frame_w; 168 167 gfx_coord_t frame_h; 169 gfx_coord_t w;170 gfx_coord_t h;171 168 172 169 if (menu->mbar->res->textmode) { … … 178 175 } 179 176 180 edim.x = 0; 181 edim.y = 0; 182 183 mentry = ui_menu_entry_first(menu); 184 while (mentry != NULL) { 185 w = ui_menu_entry_width(mentry); 186 h = ui_menu_entry_height(mentry); 187 188 if (w > edim.x) 189 edim.x = w; 190 edim.y += h; 191 192 mentry = ui_menu_entry_next(mentry); 193 } 177 edim.x = menu->max_w; 178 edim.y = menu->total_h; 194 179 195 180 geom->outer_rect.p0 = *spos;
Note:
See TracChangeset
for help on using the changeset viewer.