aboutsummaryrefslogtreecommitdiff
path: root/libgui/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-01-09 23:19:53 +0100
committerMarvin Borner2021-01-09 23:19:53 +0100
commit836294b9232c7d63d26db4f87c32cf1420cd856d (patch)
tree54f1b28951c53b38dcde5866a74c082c8ef83b0f /libgui/inc
parentf27a5f8af9fc5a16b80a7d6646e44d718b0efd7d (diff)
To be continued
Diffstat (limited to 'libgui/inc')
-rw-r--r--libgui/inc/gfx.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libgui/inc/gfx.h b/libgui/inc/gfx.h
index 0f4c631..d096005 100644
--- a/libgui/inc/gfx.h
+++ b/libgui/inc/gfx.h
@@ -64,6 +64,7 @@ struct context {
int flags;
};
+struct context *gfx_new_ctx(struct context *ctx);
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,
@@ -83,8 +84,6 @@ int gfx_font_width(enum font_type);
* Wrappers
*/
-#define gfx_new_ctx(ctx) \
- (msg_send(2, GFX_NEW_CONTEXT, (ctx)), (struct context *)msg_receive_loop()->data)
#define gfx_redraw() (msg_send(2, GFX_REDRAW, NULL)) // TODO: Partial redraw (optimization)
#define gfx_redraw_focused() (msg_send(2, GFX_REDRAW_FOCUSED, NULL))