Changeset 34aad53d in mainline for uspace/app/gfxdemo/gfxdemo.c


Ignore:
Timestamp:
2024-04-07T09:45:45Z (7 months ago)
Author:
Nataliia Korop <n.corop08@…>
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.
Message:

merge master to topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/gfxdemo/gfxdemo.c

    re4cc266 r34aad53d  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    393393                for (j = 0; j < h; j++) {
    394394                        pixelmap_put_pixel(&pixelmap, i, j,
    395                             PIXEL(0, (i % 30) < 3 ? 255 : 0,
     395                            PIXEL(255, (i % 30) < 3 ? 255 : 0,
    396396                            (j % 30) < 3 ? 255 : 0, i / 2));
    397397                }
     
    429429                        k = i * i + j * j;
    430430                        pixelmap_put_pixel(&pixelmap, i, j,
    431                             PIXEL(0, k, k, k));
     431                            PIXEL(255, k, k, k));
    432432                }
    433433        }
     
    464464                        k = i * i + j * j;
    465465                        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));
    468468                }
    469469        }
     
    621621        params.rect.p1.y = 40;
    622622        params.flags = bmpf_color_key;
    623         params.key_color = PIXEL(0, 255, 0, 255);
     623        params.key_color = PIXEL(255, 255, 0, 255);
    624624
    625625        rc = gfx_bitmap_create(gc, &params, NULL, &bitmap);
     
    11601160         * to rect
    11611161         */
    1162         ui_wdecor_rect_from_app(params.style, &rect, &wrect);
     1162        ui_wdecor_rect_from_app(ui, params.style, &rect, &wrect);
    11631163        off = wrect.p0;
    11641164        gfx_rect_rtranslate(&off, &wrect, &params.rect);
Note: See TracChangeset for help on using the changeset viewer.