Changeset 1215db9 in mainline for uspace/srv


Ignore:
Timestamp:
2021-06-26T23:30:18Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e87415e6
Parents:
bb14312
Message:

Memory GC needs to be able to forward cursor control

Location:
uspace/srv/hid/display
Files:
2 edited

Legend:

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

    rbb14312 r1215db9  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5353static void ds_display_update_cb(void *);
    5454
     55static mem_gc_cb_t ds_display_mem_gc_cb = {
     56        .invalidate = ds_display_invalidate_cb,
     57        .update = ds_display_update_cb
     58};
     59
    5560/** Create display.
    5661 *
     
    459464                goto error;
    460465
    461         rc = mem_gc_create(&disp->rect, &alloc,
    462             ds_display_invalidate_cb, ds_display_update_cb, (void *) disp,
    463             &disp->bbgc);
     466        rc = mem_gc_create(&disp->rect, &alloc, &ds_display_mem_gc_cb,
     467            (void *) disp, &disp->bbgc);
    464468        if (rc != EOK)
    465469                goto error;
  • uspace/srv/hid/display/window.c

    rbb14312 r1215db9  
    5353static void ds_window_get_preview_rect(ds_window_t *, gfx_rect_t *);
    5454
     55static mem_gc_cb_t ds_window_mem_gc_cb = {
     56        .invalidate = ds_window_invalidate_cb,
     57        .update = ds_window_update_cb
     58};
     59
    5560/** Create window.
    5661 *
     
    108113        }
    109114
    110         rc = mem_gc_create(&params->rect, &alloc, ds_window_invalidate_cb,
    111             ds_window_update_cb, (void *)wnd, &wnd->mgc);
     115        rc = mem_gc_create(&params->rect, &alloc, &ds_window_mem_gc_cb,
     116            (void *)wnd, &wnd->mgc);
    112117        if (rc != EOK)
    113118                goto error;
Note: See TracChangeset for help on using the changeset viewer.