Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f73a8e3 in mainline


Ignore:
Timestamp:
2021-03-08T16:21:42Z (6 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
17fac946
Parents:
d6c4d40
Message:

Console GC needs to implement a dummy update operation

For the glory of EGA calculator!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/congfx/src/console.c

    rd6c4d40 rf73a8e3  
    5050static errno_t console_gc_set_color(void *, gfx_color_t *);
    5151static errno_t console_gc_fill_rect(void *, gfx_rect_t *);
     52static errno_t console_gc_update(void *);
    5253static errno_t console_gc_bitmap_create(void *, gfx_bitmap_params_t *,
    5354    gfx_bitmap_alloc_t *, void **);
     
    5960        .set_color = console_gc_set_color,
    6061        .fill_rect = console_gc_fill_rect,
     62        .update = console_gc_update,
    6163        .bitmap_create = console_gc_bitmap_create,
    6264        .bitmap_destroy = console_gc_bitmap_destroy,
     
    117119            crect.p1.x, crect.p1.y);
    118120
     121        return EOK;
     122}
     123
     124/** Update console GC.
     125 *
     126 * @param arg Console GC
     127 *
     128 * @return EOK on success or an error code
     129 */
     130static errno_t console_gc_update(void *arg)
     131{
     132        console_gc_t *cgc = (console_gc_t *) arg;
     133
     134        /*
     135         * XXX Before actually deferring update to here (and similarly other
     136         * GC implementations) need to make sure all consumers properly
     137         * call update.
     138         */
     139        (void) cgc;
    119140        return EOK;
    120141}
Note: See TracChangeset for help on using the changeset viewer.