Changeset a8eed5f in mainline
- Timestamp:
- 2020-02-28T16:03:20Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7bb45e3
- Parents:
- 0e6e77f
- git-author:
- Jiri Svoboda <jiri@…> (2020-02-27 18:02:55)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-02-28 16:03:20)
- Location:
- uspace
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
r0e6e77f ra8eed5f 232 232 return rc; 233 233 234 gfx_bitmap_params_init(¶ms); 234 235 params.rect.p0.x = 0; 235 236 params.rect.p0.y = 0; -
uspace/app/terminal/terminal.c
r0e6e77f ra8eed5f 775 775 } 776 776 777 gfx_bitmap_params_init(¶ms); 777 778 params.rect.p0.x = 0; 778 779 params.rect.p0.y = 0; -
uspace/lib/display/src/display.c
r0e6e77f ra8eed5f 137 137 /** Initialize window parameters structure. 138 138 * 139 * Window parameters structure must always be initialized using this function 140 * first. 141 * 139 142 * @param params Window parameters structure 140 143 */ -
uspace/lib/gfx/include/gfx/bitmap.h
r0e6e77f ra8eed5f 42 42 #include <types/gfx/bitmap.h> 43 43 44 extern void gfx_bitmap_params_init(gfx_bitmap_params_t *); 44 45 extern errno_t gfx_bitmap_create(gfx_context_t *, gfx_bitmap_params_t *, 45 46 gfx_bitmap_alloc_t *, gfx_bitmap_t **); -
uspace/lib/gfx/src/bitmap.c
r0e6e77f ra8eed5f 35 35 36 36 #include <gfx/bitmap.h> 37 #include <mem.h> 37 38 #include <stdint.h> 38 39 #include <stdlib.h> 39 40 #include "../private/bitmap.h" 40 41 #include "../private/context.h" 42 43 /** Initialize bitmap parameters structure. 44 * 45 * Bitmap parameters structure must always be initialized using this function 46 * first. 47 * 48 * @param params Bitmap parameters structure 49 */ 50 void gfx_bitmap_params_init(gfx_bitmap_params_t *params) 51 { 52 memset(params, 0, sizeof(gfx_bitmap_params_t)); 53 } 41 54 42 55 /** Allocate bitmap in a graphics context. -
uspace/lib/gfx/test/bitmap.c
r0e6e77f ra8eed5f 84 84 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 85 85 86 gfx_bitmap_params_init(¶ms); 86 87 params.rect.p0.x = 1; 87 88 params.rect.p0.y = 2; … … 120 121 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 121 122 123 gfx_bitmap_params_init(¶ms); 124 122 125 rc = gfx_bitmap_create(gc, ¶ms, NULL, &bitmap); 123 126 PCUT_ASSERT_ERRNO_VAL(EOK, rc); … … 159 162 rc = gfx_context_new(&ops, &tgc, &gc); 160 163 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 164 165 gfx_bitmap_params_init(¶ms); 161 166 162 167 rc = gfx_bitmap_create(gc, ¶ms, NULL, &bitmap); -
uspace/lib/gfx/test/coord.c
r0e6e77f ra8eed5f 598 598 599 599 /** Rectangle dimensions for reversed rectangle are computed correctly */ 600 PCUT_TEST(rect_dims_ straight)600 PCUT_TEST(rect_dims_reversed) 601 601 { 602 602 gfx_rect_t rect; -
uspace/lib/gui/window.c
r0e6e77f ra8eed5f 405 405 return; 406 406 407 gfx_bitmap_params_init(¶ms); 407 408 params.rect.p0.x = 0; 408 409 params.rect.p0.y = 0; -
uspace/lib/ipcgfx/test/ipcgfx.c
r0e6e77f ra8eed5f 330 330 resp.rc = ENOMEM; 331 331 resp.bitmap_create_called = false; 332 333 gfx_bitmap_params_init(¶ms); 332 334 params.rect.p0.x = 1; 333 335 params.rect.p0.y = 2; … … 387 389 resp.rc = EOK; 388 390 resp.bitmap_create_called = false; 391 392 gfx_bitmap_params_init(¶ms); 389 393 params.rect.p0.x = 1; 390 394 params.rect.p0.y = 2; … … 448 452 449 453 resp.rc = EOK; 454 gfx_bitmap_params_init(¶ms); 450 455 params.rect.p0.x = 1; 451 456 params.rect.p0.y = 2; … … 502 507 503 508 resp.rc = EOK; 509 gfx_bitmap_params_init(¶ms); 504 510 params.rect.p0.x = 1; 505 511 params.rect.p0.y = 2; … … 569 575 570 576 resp.rc = EOK; 577 gfx_bitmap_params_init(¶ms); 571 578 params.rect.p0.x = 1; 572 579 params.rect.p0.y = 2; … … 635 642 636 643 resp.rc = EOK; 644 gfx_bitmap_params_init(¶ms); 637 645 params.rect.p0.x = 1; 638 646 params.rect.p0.y = 2; -
uspace/srv/hid/display/window.c
r0e6e77f ra8eed5f 282 282 ds_display_add_window(client->display, wnd); 283 283 284 gfx_bitmap_params_init(&bparams); 284 285 bparams.rect = params->rect; 285 286 … … 355 356 dgc = ds_display_get_gc(wnd->display); // XXX 356 357 if (dgc != NULL) { 358 gfx_bitmap_params_init(&bparams); 357 359 bparams.rect = *nrect; 358 360
Note:
See TracChangeset
for help on using the changeset viewer.