From 2f6f3ea54ad01f02e68a23345565c34eb47ad365 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 8 Aug 2022 21:13:36 +0200 Subject: user: drawmouse for demoing mouse/graphic support --- src/user/lib/draw/draw.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/user/lib/draw/draw.h') diff --git a/src/user/lib/draw/draw.h b/src/user/lib/draw/draw.h index ba15840..98316fe 100644 --- a/src/user/lib/draw/draw.h +++ b/src/user/lib/draw/draw.h @@ -17,3 +17,8 @@ void dirty_mark(struct rect *d, uint32_t x, uint32_t y); void dirty_flush(struct rect *d, struct framebuf *fb); int fb_setup(struct framebuf *fb, const char *base); +int fb_anon(struct framebuf *fb, size_t w, size_t h); +uint32_t *fb_pixel(struct framebuf *fb, uint32_t x, uint32_t y); +void fb_cpy( + struct framebuf *dest, const struct framebuf *src, + size_t xd, size_t yd, size_t xs, size_t ys, size_t w, size_t h); -- cgit v1.2.3