Changeset 7470d97 in mainline for uspace/srv/hid/display/clonegc.c
- Timestamp:
- 2021-04-30T15:05:06Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 051349b
- Parents:
- 252d03c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/clonegc.c
r252d03c r7470d97 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 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 *); 46 47 static errno_t ds_clonegc_set_color(void *, gfx_color_t *); 47 48 static errno_t ds_clonegc_fill_rect(void *, gfx_rect_t *); … … 65 66 66 67 gfx_context_ops_t ds_clonegc_ops = { 68 .set_clip_rect = ds_clonegc_set_clip_rect, 67 69 .set_color = ds_clonegc_set_color, 68 70 .fill_rect = ds_clonegc_fill_rect, … … 73 75 }; 74 76 77 /** Set clipping rectangle on clone GC. 78 * 79 * @param arg Clone GC 80 * @param rect Rectangle 81 * 82 * @return EOK on success or an error code 83 */ 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 75 102 /** Set color on clone GC. 76 103 *
Note:
See TracChangeset
for help on using the changeset viewer.