From 63e86f792167e6cc2e9600d00b184a3c83fe7498 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 5 Nov 2020 17:30:39 +0100 Subject: Added warning flags and fixed them :) --- libgui/gfx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libgui/gfx.c') diff --git a/libgui/gfx.c b/libgui/gfx.c index 6e8b56a..304f935 100644 --- a/libgui/gfx.c +++ b/libgui/gfx.c @@ -28,7 +28,7 @@ static void load_font(enum font_type font_type) if (fonts[font_type]) return; - char *path = NULL; + const char *path = NULL; switch (font_type) { case FONT_8: @@ -111,7 +111,7 @@ void gfx_write(struct context *ctx, int x, int y, enum font_type font_type, u32 /* gfx_redraw(); */ } -void gfx_load_image(struct context *ctx, char *path, int x, int y) +void gfx_load_image(struct context *ctx, const char *path, int x, int y) { // TODO: Support x, y struct bmp *bmp = bmp_load(path); @@ -130,7 +130,7 @@ void gfx_load_image(struct context *ctx, char *path, int x, int y) /* gfx_redraw(); */ } -void gfx_load_wallpaper(struct context *ctx, char *path) +void gfx_load_wallpaper(struct context *ctx, const char *path) { gfx_load_image(ctx, path, 0, 0); } -- cgit v1.2.3