Changeset a3f63ac in mainline for uspace/lib/guigfx
- Timestamp:
- 2019-09-24T11:13:18Z (6 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)
- Location:
- uspace/lib/guigfx
- Files:
-
- 2 added
- 4 moved
-
doc/doxygroups.h (added)
-
include/guigfx/canvas.h (moved) (moved from uspace/lib/gfx/include/gfx/backend/canvas.h ) (2 diffs)
-
include/types/guigfx/canvas.h (moved) (moved from uspace/lib/gfx/include/types/gfx/backend/canvas.h ) (2 diffs)
-
meson.build (added)
-
private/canvas.h (moved) (moved from uspace/lib/gfx/private/backend/canvas.h ) (2 diffs)
-
src/canvas.c (moved) (moved from uspace/lib/gfx/src/backend/canvas.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/guigfx/include/guigfx/canvas.h
r00e8290 ra3f63ac 27 27 */ 28 28 29 /** @addtogroup libg fx29 /** @addtogroup libguigfx 30 30 * @{ 31 31 */ … … 34 34 */ 35 35 36 #ifndef _G FX_BACKEND_CANVAS_H37 #define _G FX_BACKEND_CANVAS_H36 #ifndef _GUIGFX_CANVAS_H 37 #define _GUIGFX_CANVAS_H 38 38 39 39 #include <canvas.h> 40 #include <types/gfx/backend/canvas.h>41 40 #include <types/gfx/context.h> 42 41 #include <types/gfx/ops/context.h> 42 #include <types/guigfx/canvas.h> 43 43 44 44 extern gfx_context_ops_t canvas_gc_ops; -
uspace/lib/guigfx/include/types/guigfx/canvas.h
r00e8290 ra3f63ac 27 27 */ 28 28 29 /** @addtogroup libg fx29 /** @addtogroup libguigfx 30 30 * @{ 31 31 */ … … 34 34 */ 35 35 36 #ifndef _G FX_TYPES_BACKEND_CANVAS_H37 #define _G FX_TYPES_BACKEND_CANVAS_H36 #ifndef _GUIGFX_TYPES_CANVAS_H 37 #define _GUIGFX_TYPES_CANVAS_H 38 38 39 39 struct canvas_gc; -
uspace/lib/guigfx/private/canvas.h
r00e8290 ra3f63ac 27 27 */ 28 28 29 /** @addtogroup libg fx29 /** @addtogroup libguigfx 30 30 * @{ 31 31 */ … … 35 35 */ 36 36 37 #ifndef _G FX_PRIVATE_BACKEND_CANVAS_H38 #define _G FX_PRIVATE_BACKEND_CANVAS_H37 #ifndef _GUIGFX_PRIVATE_CANVAS_H 38 #define _GUIGFX_PRIVATE_CANVAS_H 39 39 40 40 #include <canvas.h> 41 41 #include <draw/surface.h> 42 #include <gfx/context.h> 42 43 #include <io/pixel.h> 43 #include "../context.h"44 44 45 45 /** Actual structure of graphics context. 46 46 * 47 * This is private to libg fx. It is not visible to clients nor backends.47 * This is private to libguigfx. It is not visible to clients nor backends. 48 48 */ 49 49 struct canvas_gc { -
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.
