Changeset a3f63ac in mainline for uspace/lib/guigfx/src/canvas.c
- Timestamp:
- 2019-09-24T11:13:18Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aac5069
- Parents:
- 00e8290
- git-author:
- Jiri Svoboda <jiri@…> (2019-08-23 17:43:11)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-09-24 11:13:18)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/guigfx/src/canvas.c
r00e8290 ra3f63ac 27 27 */ 28 28 29 /** @addtogroup libg fx29 /** @addtogroup libguigfx 30 30 * @{ 31 31 */ … … 37 37 */ 38 38 39 #include <gfx/ backend/canvas.h>39 #include <gfx/color.h> 40 40 #include <gfx/context.h> 41 41 #include <gfx/render.h> 42 #include <guigfx/canvas.h> 42 43 #include <io/pixel.h> 43 44 #include <stdlib.h> 44 #include "../ ../private/backend/canvas.h"45 #include "../../private/color.h"45 #include "../private/canvas.h" 46 //#include "../../private/color.h" 46 47 47 48 static errno_t canvas_gc_set_color(void *, gfx_color_t *); … … 65 66 { 66 67 canvas_gc_t *cgc = (canvas_gc_t *) arg; 68 uint16_t r, g, b; 67 69 68 cgc->color = PIXEL(0, color->r >> 8, color->g >> 8, color->b >> 8); 70 gfx_color_get_rgb_i16(color, &r, &g, &b); 71 cgc->color = PIXEL(0, r >> 8, g >> 8, b >> 8); 69 72 return EOK; 70 73 }
Note:
See TracChangeset
for help on using the changeset viewer.