aboutsummaryrefslogtreecommitdiff
path: root/libgui
diff options
context:
space:
mode:
authorMarvin Borner2020-11-19 20:03:54 +0100
committerMarvin Borner2020-11-19 20:03:54 +0100
commitb014342841485737424bee31840fd848fa706536 (patch)
treecdf3580b787bab95d1b1e331fb778a7fd39dfad3 /libgui
parentd8036aa78139c7890d8adde6ee937929623dbffb (diff)
Added some color
Diffstat (limited to 'libgui')
-rw-r--r--libgui/gfx.c2
-rw-r--r--libgui/inc/gfx.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/libgui/gfx.c b/libgui/gfx.c
index 066ab81..16b5683 100644
--- a/libgui/gfx.c
+++ b/libgui/gfx.c
@@ -102,7 +102,7 @@ void gfx_write_char(struct context *ctx, int x, int y, enum font_type font_type,
/* gfx_redraw(); */
}
-void gfx_write(struct context *ctx, int x, int y, enum font_type font_type, u32 c, char *text)
+void gfx_write(struct context *ctx, int x, int y, enum font_type font_type, u32 c, const char *text)
{
struct font *font = gfx_resolve_font(font_type);
u32 cnt = 0;
diff --git a/libgui/inc/gfx.h b/libgui/inc/gfx.h
index 58a03cb..0f4c631 100644
--- a/libgui/inc/gfx.h
+++ b/libgui/inc/gfx.h
@@ -66,7 +66,8 @@ struct context {
struct font *gfx_resolve_font(enum font_type font_type);
void gfx_write_char(struct context *ctx, int x, int y, enum font_type font_type, u32 c, char ch);
-void gfx_write(struct context *ctx, int x, int y, enum font_type font_type, u32 c, char *text);
+void gfx_write(struct context *ctx, int x, int y, enum font_type font_type, u32 c,
+ const char *text);
void gfx_load_image(struct context *ctx, const char *path, int x, int y);
void gfx_load_wallpaper(struct context *ctx, const char *path);
void gfx_copy(struct context *dest, struct context *src, int x, int y, u32 width, u32 height);