Changeset 84e74ea in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2020-06-08T18:30:52Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc492d5
Parents:
a65b0c8
Message:

Remove XXX comment from each call to display_get_gc()

These were added with the intent that each piece of code that does rendering
in the display server is augmented with a loop over all display devices.
The better solution seems to be to introduce a virtualization layer in the
form of a cloning GC that clones the rendering operations to each display
device. It makes the business code simpler and separates concerns better.
It could also allow having more types of output GCs, than just display
devices (such as an 'observer' for RFB).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/window.c

    ra65b0c8 r84e74ea  
    8484        bparams.rect = params->rect;
    8585
    86         dgc = ds_display_get_gc(wnd->display); // XXX
     86        dgc = ds_display_get_gc(wnd->display);
    8787        if (dgc != NULL) {
    8888                rc = gfx_bitmap_create(dgc, &bparams, NULL, &wnd->bitmap);
     
    268268                return rc;
    269269
    270         gc = ds_display_get_gc(wnd->display); // XXX
     270        gc = ds_display_get_gc(wnd->display);
    271271        if (gc != NULL) {
    272272                gfx_set_color(gc, color);
     
    695695        errno_t rc;
    696696
    697         dgc = ds_display_get_gc(wnd->display); // XXX
     697        dgc = ds_display_get_gc(wnd->display);
    698698        if (dgc != NULL) {
    699699                gfx_bitmap_params_init(&bparams);
Note: See TracChangeset for help on using the changeset viewer.