Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/test/label.c

    r7470d97 rf93e4e3  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2020 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141PCUT_TEST_SUITE(label);
    4242
    43 static errno_t testgc_set_clip_rect(void *, gfx_rect_t *);
    4443static errno_t testgc_set_color(void *, gfx_color_t *);
    4544static errno_t testgc_fill_rect(void *, gfx_rect_t *);
    46 static errno_t testgc_update(void *);
    4745static errno_t testgc_bitmap_create(void *, gfx_bitmap_params_t *,
    4846    gfx_bitmap_alloc_t *, void **);
     
    5250
    5351static gfx_context_ops_t ops = {
    54         .set_clip_rect = testgc_set_clip_rect,
    5552        .set_color = testgc_set_color,
    5653        .fill_rect = testgc_fill_rect,
    57         .update = testgc_update,
    5854        .bitmap_create = testgc_bitmap_create,
    5955        .bitmap_destroy = testgc_bitmap_destroy,
     
    196192        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    197193
    198         rc = ui_resource_create(gc, false, &resource);
     194        rc = ui_resource_create(gc, &resource);
    199195        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    200196        PCUT_ASSERT_NOT_NULL(resource);
     
    213209}
    214210
    215 static errno_t testgc_set_clip_rect(void *arg, gfx_rect_t *rect)
     211static errno_t testgc_set_color(void *arg, gfx_color_t *color)
     212{
     213        (void) arg;
     214        (void) color;
     215        return EOK;
     216}
     217
     218static errno_t testgc_fill_rect(void *arg, gfx_rect_t *rect)
    216219{
    217220        (void) arg;
    218221        (void) rect;
    219         return EOK;
    220 }
    221 
    222 static errno_t testgc_set_color(void *arg, gfx_color_t *color)
    223 {
    224         (void) arg;
    225         (void) color;
    226         return EOK;
    227 }
    228 
    229 static errno_t testgc_fill_rect(void *arg, gfx_rect_t *rect)
    230 {
    231         (void) arg;
    232         (void) rect;
    233         return EOK;
    234 }
    235 
    236 static errno_t testgc_update(void *arg)
    237 {
    238         (void) arg;
    239222        return EOK;
    240223}
Note: See TracChangeset for help on using the changeset viewer.