Changes in uspace/srv/hid/display/clonegc.c [7470d97:5271e4c] in mainline
- File:
-
- 1 edited
-
uspace/srv/hid/display/clonegc.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/clonegc.c
r7470d97 r5271e4c 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2020 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 44 44 #include "clonegc.h" 45 45 46 static errno_t ds_clonegc_set_clip_rect(void *, gfx_rect_t *);47 46 static errno_t ds_clonegc_set_color(void *, gfx_color_t *); 48 47 static errno_t ds_clonegc_fill_rect(void *, gfx_rect_t *); … … 66 65 67 66 gfx_context_ops_t ds_clonegc_ops = { 68 .set_clip_rect = ds_clonegc_set_clip_rect,69 67 .set_color = ds_clonegc_set_color, 70 68 .fill_rect = ds_clonegc_fill_rect, … … 75 73 }; 76 74 77 /** Set clipping rectangle on clone GC.78 *79 * @param arg Clone GC80 * @param rect Rectangle81 *82 * @return EOK on success or an error code83 */84 static errno_t ds_clonegc_set_clip_rect(void *arg, gfx_rect_t *rect)85 {86 ds_clonegc_t *cgc = (ds_clonegc_t *)arg;87 ds_clonegc_output_t *output;88 errno_t rc;89 90 output = ds_clonegc_first_output(cgc);91 while (output != NULL) {92 rc = gfx_set_clip_rect(output->gc, rect);93 if (rc != EOK)94 return rc;95 96 output = ds_clonegc_next_output(output);97 }98 99 return EOK;100 }101 102 75 /** Set color on clone GC. 103 76 *
Note:
See TracChangeset
for help on using the changeset viewer.
