Changeset 294fc3cc in mainline for uspace/lib/ui/src/window.c
- Timestamp:
- 2021-09-25T18:47:29Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45b7d4d
- Parents:
- c1c7c20
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
rc1c7c20 r294fc3cc 256 256 } else if (ui->console != NULL) { 257 257 gc = console_gc_get_ctx(ui->cgc); 258 259 if (params->placement == ui_wnd_place_full_screen) { 260 /* Make window the size of the screen */ 261 gfx_rect_dims(&ui->rect, &scr_dims); 262 gfx_coord2_add(&dparams.rect.p0, &scr_dims, 263 &dparams.rect.p1); 264 } 258 265 } else { 259 266 /* Needed for unit tests */ … … 275 282 276 283 /* Move rectangle so that top-left corner is 0,0 */ 277 gfx_rect_rtranslate(& params->rect.p0, ¶ms->rect, &bparams.rect);284 gfx_rect_rtranslate(&dparams.rect.p0, &dparams.rect, &bparams.rect); 278 285 279 286 rc = gfx_bitmap_create(gc, &bparams, NULL, &bmp);
Note:
See TracChangeset
for help on using the changeset viewer.