Add: BMP working renderer (24b) + minor bug fixes

This commit is contained in:
xamidev
2024-09-06 21:01:31 +02:00
parent f55723c227
commit 247558669e
14 changed files with 58 additions and 22 deletions

View File

@@ -15,8 +15,19 @@ extern uint32_t* framebuffer;
extern uint32_t VGA_WIDTH;
extern uint32_t VGA_HEIGHT;
unsigned int VGA_X = 0, VGA_Y = 0;
extern int scanline;
int get_cursor_x()
{
return VGA_X;
}
int get_cursor_y()
{
return VGA_Y;
}
void draw_cursor(uint32_t color)
{
for (int y=12; y<CURSOR_HEIGHT; y++)

View File

@@ -87,4 +87,7 @@ enum Colors
beige = 0x00F5F5DC
};
int get_cursor_x();
int get_cursor_y();
#endif