Changeset 34aad53d in mainline for uspace/app/gfxdemo/gfxdemo.c
- Timestamp:
- 2024-04-07T09:45:45Z (7 months ago)
- Children:
- c37c24c
- Parents:
- e4cc266 (diff), 522eecf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/gfxdemo/gfxdemo.c
re4cc266 r34aad53d 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 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); … … 1160 1160 * to rect 1161 1161 */ 1162 ui_wdecor_rect_from_app( params.style, &rect, &wrect);1162 ui_wdecor_rect_from_app(ui, params.style, &rect, &wrect); 1163 1163 off = wrect.p0; 1164 1164 gfx_rect_rtranslate(&off, &wrect, ¶ms.rect);
Note:
See TracChangeset
for help on using the changeset viewer.