Changeset a85d5c6 in mainline
- Timestamp:
- 2021-03-16T22:33:16Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d83c54
- Parents:
- 36795edf
- git-author:
- Jiri Svoboda <jiri@…> (2021-03-16 22:32:28)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-03-16 22:33:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/window.c
r36795edf ra85d5c6 393 393 /* mgc != NULL iff client-side rendering */ 394 394 if (window->mgc != NULL) { 395 /* Resize window bitmap */ 395 #ifdef CONFIG_WIN_DOUBLE_BUF 396 /* 397 * Create new window bitmap in advance. If direct mapping, 398 * will need do it after resizing the window. 399 */ 396 400 assert(window->bmp != NULL); 397 398 401 gfx_bitmap_params_init(&win_params); 399 #ifndef CONFIG_WIN_DOUBLE_BUF400 win_params.flags |= bmpf_direct_output;401 #endif402 402 win_params.rect = nrect; 403 403 … … 410 410 if (rc != EOK) 411 411 goto error; 412 #endif 412 413 } 413 414 … … 443 444 } 444 445 445 /* C Lient side rendering? */446 /* Client side rendering? */ 446 447 if (window->mgc != NULL) { 448 #ifndef CONFIG_WIN_DOUBLE_BUF 449 /* Window is resized, now we can map the window bitmap again */ 450 gfx_bitmap_params_init(&win_params); 451 win_params.flags |= bmpf_direct_output; 452 win_params.rect = nrect; 453 454 rc = gfx_bitmap_create(window->realgc, &win_params, NULL, 455 &win_bmp); 456 if (rc != EOK) 457 goto error; 458 459 rc = gfx_bitmap_get_alloc(win_bmp, &win_alloc); 460 if (rc != EOK) 461 goto error; 462 #endif 463 447 464 mem_gc_retarget(window->mgc, &win_params.rect, &win_alloc); 448 465
Note:
See TracChangeset
for help on using the changeset viewer.