Changeset 0a411bbf in mainline
- Timestamp:
- 2024-03-08T11:36:46Z (10 months ago)
- Branches:
- master
- Children:
- 0ffa40a7
- Parents:
- 211fd68
- git-author:
- Jiri Svoboda <jiri@…> (2024-03-07 19:36:27)
- git-committer:
- Jiri Svoboda <jiri@…> (2024-03-08 11:36:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
r211fd68 r0a411bbf 393 393 for (j = 0; j < h; j++) { 394 394 pixelmap_put_pixel(&pixelmap, i, j, 395 PIXEL( 0, (i % 30) < 3 ? 255 : 0,395 PIXEL(255, (i % 30) < 3 ? 255 : 0, 396 396 (j % 30) < 3 ? 255 : 0, i / 2)); 397 397 } … … 429 429 k = i * i + j * j; 430 430 pixelmap_put_pixel(&pixelmap, i, j, 431 PIXEL( 0, k, k, k));431 PIXEL(255, k, k, k)); 432 432 } 433 433 } … … 464 464 k = i * i + j * j; 465 465 pixelmap_put_pixel(&pixelmap, i, j, 466 k < w * w / 2 ? PIXEL( 0, 0, 255, 0) :467 PIXEL( 0, 255, 0, 255));466 k < w * w / 2 ? PIXEL(255, 0, 255, 0) : 467 PIXEL(255, 255, 0, 255)); 468 468 } 469 469 } … … 621 621 params.rect.p1.y = 40; 622 622 params.flags = bmpf_color_key; 623 params.key_color = PIXEL( 0, 255, 0, 255);623 params.key_color = PIXEL(255, 255, 0, 255); 624 624 625 625 rc = gfx_bitmap_create(gc, ¶ms, NULL, &bitmap);
Note:
See TracChangeset
for help on using the changeset viewer.