Load BIOS font as 16x15
This commit is contained in:
parent
79a99d10bc
commit
59168512b6
|
@ -54,13 +54,16 @@ namespace JabyEngine {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Letters are actually only 16x15 but should be treated 16x16
|
||||||
struct Letter : public GPU::internal::LinkedElementCreator<Letter> {
|
struct Letter : public GPU::internal::LinkedElementCreator<Letter> {
|
||||||
CPU2VRAM cmd;
|
CPU2VRAM cmd;
|
||||||
Line lines[FontSize.height];
|
Line lines[FontSize.height - 1];
|
||||||
|
Line empty_line;
|
||||||
|
|
||||||
void setup(const SizeU16& size) {
|
void setup(const SizeU16& size) {
|
||||||
this->cmd.cmd = GPU_IO::Command::CPU2VRAM_Blitting();
|
this->cmd.cmd = GPU_IO::Command::CPU2VRAM_Blitting();
|
||||||
this->cmd.size = GPU_IO::Command::WidthHeight(size);
|
this->cmd.size = GPU_IO::Command::WidthHeight(size);
|
||||||
|
this->empty_line.load(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void load_to(const PositionU16& pos, const uint16_t* bit_map) {
|
void load_to(const PositionU16& pos, const uint16_t* bit_map) {
|
||||||
|
|
Loading…
Reference in New Issue