tiny fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -62,6 +62,8 @@ uint32_t BasicRenderer::GetPixel(uint32_t x, uint32_t y){
|
||||
}
|
||||
|
||||
void BasicRenderer::ClearMouseCursor(uint8_t* mouseCursor, Point position) {
|
||||
if (!MouseDrawn) return;
|
||||
|
||||
int xMax = 16;
|
||||
int yMax = 19;
|
||||
int diffX = targetFramebuffer->Width - position.x;
|
||||
@@ -102,6 +104,8 @@ void BasicRenderer::DrawOverlayMouseCursor(uint8_t* mouseCursor, Point position,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MouseDrawn = true;
|
||||
}
|
||||
|
||||
void BasicRenderer::Clear() {
|
||||
|
||||
@@ -23,6 +23,7 @@ class BasicRenderer {
|
||||
void Clear();
|
||||
void Next();
|
||||
void DrawOverlayMouseCursor(uint8_t* mouseCursor, Point position, uint32_t colour);
|
||||
bool MouseDrawn;
|
||||
};
|
||||
|
||||
extern BasicRenderer* GlobalRenderer;
|
||||
Reference in New Issue
Block a user