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/inc/gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgui/inc/gfx.h') diff --git a/libgui/inc/gfx.h b/libgui/inc/gfx.h index 0b37d84..58a03cb 100644 --- a/libgui/inc/gfx.h +++ b/libgui/inc/gfx.h @@ -67,8 +67,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_load_image(struct context *ctx, char *path, int x, int y); -void gfx_load_wallpaper(struct context *ctx, char *path); +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); void gfx_ctx_on_ctx(struct context *dest, struct context *src, int x, int y); void gfx_draw_rectangle(struct context *ctx, int x1, int y1, int x2, int y2, u32 c); -- cgit v1.2.3