Changeset 87a7cdb in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2019-12-05T19:35:12Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
71cbe5c
Parents:
973efd36
Message:

Enumerate display devices for output, RFB conversion (WIP)

Currently we can only have one active output device. Bitmaps
do not work as ipcgfx does not accept alloc != NULL.
Need to fill in tests.

File:
1 edited

Legend:

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

    r973efd36 r87a7cdb  
    7777        ds_window_t *wnd = (ds_window_t *) arg;
    7878
    79         log_msg(LOG_DEFAULT, LVL_NOTE, "gc_set_color gc=%p", wnd->display->gc);
    80         return gfx_set_color(wnd->display->gc, color);
     79        log_msg(LOG_DEFAULT, LVL_NOTE, "gc_set_color gc=%p",
     80            ds_display_get_gc(wnd->display));
     81        return gfx_set_color(ds_display_get_gc(wnd->display), color);
    8182}
    8283
     
    9596        log_msg(LOG_DEFAULT, LVL_NOTE, "gc_fill_rect");
    9697        gfx_rect_translate(&wnd->dpos, rect, &drect);
    97         return gfx_fill_rect(wnd->display->gc, &drect);
     98        return gfx_fill_rect(ds_display_get_gc(wnd->display), &drect);
    9899}
    99100
     
    117118                return ENOMEM;
    118119
    119         rc = gfx_bitmap_create(wnd->display->gc, params, alloc,
     120        rc = gfx_bitmap_create(ds_display_get_gc(wnd->display), params, alloc,
    120121            &cbm->bitmap);
    121122        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.