mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-05-15 09:01:27 -07:00
9 lines
203 B
C
9 lines
203 B
C
#include "vga.h"
|
|
|
|
uint8_t vga_entry_color(vga_color fg, vga_color bg) {
|
|
return fg | bg << 4;
|
|
}
|
|
|
|
uint16_t vga_entry(unsigned char uc, uint8_t color) {
|
|
return (uint16_t)uc | (uint16_t)color << 8;
|
|
} |