Load BIOS font as 16x15

This commit is contained in:
Björn Gaier 2023-12-18 16:21:32 -05:00
parent b4be9de136
commit 2f76e7a71e
1 changed files with 4 additions and 1 deletions

View File

@ -54,13 +54,16 @@ namespace JabyEngine {
}
};
// Letters are actually only 16x15 but should be treated 16x16
struct Letter : public GPU::internal::LinkedElementCreator<Letter> {
CPU2VRAM cmd;
Line lines[FontSize.height];
Line lines[FontSize.height - 1];
Line empty_line;
void setup(const SizeU16& size) {
this->cmd.cmd = GPU_IO::Command::CPU2VRAM_Blitting();
this->cmd.size = GPU_IO::Command::WidthHeight(size);
this->empty_line.load(0);
}
void load_to(const PositionU16& pos, const uint16_t* bit_map) {