From 2fb0965a68dd232a70d1616bfbd7281fc65c2b0a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 29 Sep 2019 20:09:56 +0200 Subject: Added some minor improvements --- src/kernel/graphics/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/graphics/vga.c') diff --git a/src/kernel/graphics/vga.c b/src/kernel/graphics/vga.c index fa1f330..8fde84f 100644 --- a/src/kernel/graphics/vga.c +++ b/src/kernel/graphics/vga.c @@ -25,11 +25,11 @@ enum vga_color { VGA_COLOR_WHITE = 15, }; -static inline uint8_t vga_entry_color(enum vga_color fg, enum vga_color bg) { +inline uint8_t vga_entry_color(enum vga_color fg, enum vga_color bg) { return fg | bg << 4; } -static inline uint16_t vga_entry(unsigned char uc, uint8_t color) { +inline uint16_t vga_entry(unsigned char uc, uint8_t color) { return (uint16_t) uc | (uint16_t) color << 8; } -- cgit v1.2.3