summaryrefslogtreecommitdiff
path: root/framebuffer.h
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-21 15:01:30 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-21 15:01:30 +0300
commitcb49c9bfa880464862b99d9b7a47a927552989d4 (patch)
tree5528753165c97c3b2461f85d045eae34c84ddbb0 /framebuffer.h
parent3fed5969034c464e36358fc45a99b57b1f308c11 (diff)
downloadwafflestone-cb49c9bfa880464862b99d9b7a47a927552989d4.tar.xz
Output
Diffstat (limited to 'framebuffer.h')
-rw-r--r--framebuffer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/framebuffer.h b/framebuffer.h
index 373cfb4..cadcb00 100644
--- a/framebuffer.h
+++ b/framebuffer.h
@@ -34,7 +34,7 @@ typedef struct Pixel_s {
/* Solid colour pixels */
#define P_BLACK (Pixel){C_BLACK, C_BLACK, ' '}
#define P_WHITE (Pixel){C_WHITE, C_WHITE, ' '}
-#define P_RED (Pixel){C_RED, C_RED, ' '}
+#define P_RED (Pixel){C_RED, C_RED, '4'}
#define P_GREEN (Pixel){C_GREEN, C_GREEN, ' '}
#define P_BLUE (Pixel){C_BLUE, C_BLUE, ' '}
#define P_YELLOW (Pixel){C_YELLOW, C_YELLOW, ' '}
@@ -58,7 +58,7 @@ void fb_fill(Framebuffer fb, Pixel pixel);
#define fb_clear(fb) fb_fill(fb, P_BLACK)
/* Puts a pixel onto fb in a specified position */
-void inline fb_put(Framebuffer fb, size_t row, size_t col, Pixel pixel);
+void fb_put(Framebuffer fb, size_t row, size_t col, Pixel pixel);
/* Initializes the terminal and sets TERM_WIDTH and TERM_HEIGHT */
void term_init(void);
@@ -72,7 +72,9 @@ void term_update_size(void);
/* Prints fb to the screen */
void fb_print(Framebuffer fb);
-/* c is a byte */
+static inline void set_fg(Colour col);
+static inline void set_bg(Colour col);
+
#define get_input(c) read(STDIN_FILENO, &c, 1)
#endif /* FRAMEBUFFER_H_ */