Changeset 8edec53 in mainline for uspace/app/nav/nav.c
- Timestamp:
- 2021-10-25T17:51:10Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ece11b
- Parents:
- 805a149
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/nav.c
r805a149 r8edec53 130 130 ui_wnd_params_t params; 131 131 gfx_rect_t rect; 132 gfx_rect_t arect; 133 gfx_coord_t pw; 132 134 unsigned i; 133 135 errno_t rc; … … 155 157 156 158 ui_window_set_cb(navigator->window, &window_cb, (void *) navigator); 159 ui_window_get_app_rect(navigator->window, &arect); 157 160 158 161 rc = ui_fixed_create(&navigator->fixed); … … 176 179 return rc; 177 180 } 181 182 /* Panel width */ 183 pw = (arect.p1.x - arect.p0.x) / 2; 178 184 179 185 for (i = 0; i < 2; i++) { … … 183 189 goto error; 184 190 185 rect.p0.x = 40* i;186 rect.p0.y = 1;187 rect.p1.x = 40* (i + 1);188 rect.p1.y = 24;191 rect.p0.x = arect.p0.x + pw * i; 192 rect.p0.y = arect.p0.y + 1; 193 rect.p1.x = arect.p0.x + pw * (i + 1); 194 rect.p1.y = arect.p1.y - 1; 189 195 panel_set_rect(navigator->panel[i], &rect); 190 196
Note:
See TracChangeset
for help on using the changeset viewer.