Kernel: VESA driver has now second buffer for fast scrolling

This allows us to not read from video memory, since it was very slow

I also implemented fast path for graphics clearing and scrolling if bpp is 32
This commit is contained in:
Bananymous
2022-12-20 14:01:04 +02:00
parent 5e2680cade
commit 3f7a61a4d2
6 changed files with 155 additions and 65 deletions

View File

@@ -25,10 +25,11 @@ namespace VESA
BRIGHT_WHITE = 15,
};
bool Initialize();
bool PreInitialize();
void Initialize();
void PutEntryAt(uint16_t, uint32_t, uint32_t, Color, Color);
void Clear(Color);
void ScrollLine(uint32_t line);
void Scroll();
uint32_t GetTerminalWidth();
uint32_t GetTerminalHeight();

View File

@@ -5,6 +5,7 @@
void kmalloc_initialize();
void kmalloc_dump_nodes();
void* kmalloc_eternal(size_t);
void* kmalloc(size_t);
void kfree(void*);