From 3eb69c052dc8730f81105cbc429bdceae5accc45 Mon Sep 17 00:00:00 2001 From: Curle Date: Sun, 23 Aug 2020 00:47:15 +0100 Subject: [PATCH] Removed unnecessary VGA textmode header --- chroma/inc/kernel/video/vga-textmode.h | 34 -------------------------- 1 file changed, 34 deletions(-) delete mode 100644 chroma/inc/kernel/video/vga-textmode.h diff --git a/chroma/inc/kernel/video/vga-textmode.h b/chroma/inc/kernel/video/vga-textmode.h deleted file mode 100644 index 9b3f978..0000000 --- a/chroma/inc/kernel/video/vga-textmode.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef VGA_TEXTMODE_H -#define VGA_TEXTMODE_H - -#include - -enum VGA_COLOR { - VGA_COLOR_BLACK = 0, - VGA_COLOR_BLUE = 1, - VGA_COLOR_GREEN = 2, - VGA_COLOR_CYAN = 3, - VGA_COLOR_RED = 4, - VGA_COLOR_MAGENTA = 5, - VGA_COLOR_BROWN = 6, - VGA_COLOR_LIGHTGREY = 7, - VGA_COLOR_DARKGREY = 8, - VGA_COLOR_LIGHTBLUE = 9, - VGA_COLOR_LIGHTGREEN = 10, - VGA_COLOR_LIGHTCYAN = 11, - VGA_COLOR_PINK = 12, - VGA_COLOR_LIGHTMAGENTA = 13, - VGA_COLOR_LIGHTBROWN = 14, - VGA_COLOR_WHITE = 15, -}; - -static inline uint8_t VGACharColor(enum VGA_COLOR fg, enum VGA_COLOR bg) { - return fg | bg << 4; -} - -static inline uint8_t VGAChar(unsigned char uc, uint8_t color) { - return (uint16_t) uc | (uint16_t) color << 8; -} - -#endif -