From 00cc8736f10098dedf6b856b9ad8bd0094211263 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 18 Feb 2021 11:56:08 -0500 Subject: vbe support, truecolor window manager pixbufs --- src/kernel/window.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/kernel/window.h') diff --git a/src/kernel/window.h b/src/kernel/window.h index a226c11..ebd0496 100644 --- a/src/kernel/window.h +++ b/src/kernel/window.h @@ -9,13 +9,20 @@ struct window; +struct pixel { + uint8_t r; + uint8_t g; + uint8_t b; + uint8_t pad; +} __attribute__ ((__packed__)); + void init_win(); -struct window *new_window(uint16_t width, uint16_t height, const void *pixel_buffer); +struct window *new_window(uint16_t width, uint16_t height, const struct pixel *pixel_buffer); void del_window(struct window *w); -void resize_window(struct window *w, uint16_t width, uint16_t height, const void *pixel_buffer); -void reassign_pixel_buffer(struct window *w, const void *pixel_buffer); +void resize_window(struct window *w, uint16_t width, uint16_t height, const struct pixel *pixel_buffer); +void reassign_pixel_buffer(struct window *w, const struct pixel *pixel_buffer); void push_window_paint(const struct window *w); struct window_action next_window_action(struct window *w); void wait_window_action(); -- cgit v1.2.3