Ignore:
File:
1 edited

Legend:

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

    r195b7b3 r1215db9  
    11/*
    2  * Copyright (c) 2019 Jiri Svoboda
     2 * Copyright (c) 2021 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5050
    5151static gfx_context_t *ds_display_get_unbuf_gc(ds_display_t *);
    52 static void ds_display_update_cb(void *, gfx_rect_t *);
     52static void ds_display_invalidate_cb(void *, gfx_rect_t *);
     53static void ds_display_update_cb(void *);
     54
     55static mem_gc_cb_t ds_display_mem_gc_cb = {
     56        .invalidate = ds_display_invalidate_cb,
     57        .update = ds_display_update_cb
     58};
    5359
    5460/** Create display.
     
    458464                goto error;
    459465
    460         rc = mem_gc_create(&disp->rect, &alloc,
    461             ds_display_update_cb, (void *) disp, &disp->bbgc);
     466        rc = mem_gc_create(&disp->rect, &alloc, &ds_display_mem_gc_cb,
     467            (void *) disp, &disp->bbgc);
    462468        if (rc != EOK)
    463469                goto error;
     
    732738}
    733739
    734 /** Display update callback.
     740/** Display invalidate callback.
    735741 *
    736742 * Called by backbuffer memory GC when something is rendered into it.
     
    740746 * @param rect Rectangle to update
    741747 */
    742 static void ds_display_update_cb(void *arg, gfx_rect_t *rect)
     748static void ds_display_invalidate_cb(void *arg, gfx_rect_t *rect)
    743749{
    744750        ds_display_t *disp = (ds_display_t *) arg;
     
    749755}
    750756
     757/** Display update callback.
     758 *
     759 * @param arg Argument (display cast as void *)
     760 */
     761static void ds_display_update_cb(void *arg)
     762{
     763        ds_display_t *disp = (ds_display_t *) arg;
     764
     765        (void) disp;
     766}
     767
    751768/** @}
    752769 */
Note: See TracChangeset for help on using the changeset viewer.