diff options
Diffstat (limited to 'framebuffer.h')
| -rw-r--r-- | framebuffer.h | 8 |
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_ */ |
