diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 06:56:01 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-25 08:45:09 +0100 |
| commit | 239900af293f192931391dc5579afab39a43e6c6 (patch) | |
| tree | 72d7f87ee6adf5aa84b78436197e03e61fba8d97 /kernel/include/graphics.h | |
| parent | aaa23fffd02fb49cdbc56a480dbb5a8fa95bff38 (diff) | |
clang-format
Diffstat (limited to 'kernel/include/graphics.h')
| -rw-r--r-- | kernel/include/graphics.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/kernel/include/graphics.h b/kernel/include/graphics.h index f19a579..7a32f7c 100644 --- a/kernel/include/graphics.h +++ b/kernel/include/graphics.h @@ -19,20 +19,23 @@ typedef struct fb_t fb_t; extern fb_t main_fb; -#define RED 0x00ff0000 -#define GREEN 0x0000ff00 -#define BLUE 0x000000ff -#define YELLOW 0x00ffff00 -#define PURPLE 0x00ff00ff -#define WHITE 0x00ffffff -#define BLACK 0x00000000 +#define RED 0x00ff0000 +#define GREEN 0x0000ff00 +#define BLUE 0x000000ff +#define YELLOW 0x00ffff00 +#define PURPLE 0x00ff00ff +#define WHITE 0x00ffffff +#define BLACK 0x00000000 -void set_color(fb_t* fb, uint32_t char_col, uint32_t bg_col); +void set_color(fb_t *fb, uint32_t char_col, uint32_t bg_col); void clear_screen(fb_t fb); void fb_draw_pixel(fb_t fb, int32_t x, int32_t y, uint32_t col); -void fb_draw_line_low(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t col); -void fb_draw_line_high(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t col); -void fb_draw_line(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t col); +void fb_draw_line_low(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, + uint32_t col); +void fb_draw_line_high(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, + uint32_t col); +void fb_draw_line(fb_t fb, int32_t x0, int32_t y0, int32_t x1, int32_t y1, + uint32_t col); void fb_draw_character(fb_t fb, char c, int32_t x, int32_t y); #endif |
