diff options
Diffstat (limited to 'libgui/inc')
-rw-r--r-- | libgui/inc/bmp.h | 2 | ||||
-rw-r--r-- | libgui/inc/gfx.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libgui/inc/bmp.h b/libgui/inc/bmp.h index 909bc92..ea7a07f 100644 --- a/libgui/inc/bmp.h +++ b/libgui/inc/bmp.h @@ -34,6 +34,6 @@ struct bmp { u32 pitch; }; -struct bmp *bmp_load(char *path); +struct bmp *bmp_load(const char *path); #endif 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); |