diff --git a/include/display.hpp b/include/display.hpp index 1d0d47f8..094aa0bb 100644 --- a/include/display.hpp +++ b/include/display.hpp @@ -135,12 +135,19 @@ namespace Video this->Buffers[Index]->Checksum = 0; // Making sure that the buffer is not used anymore delete this->Buffers[Index]; } + void SetBufferCursor(int Index, uint32_t X, uint32_t Y) { this->Buffers[Index]->CursorX = X; this->Buffers[Index]->CursorY = Y; } + void GetBufferCursor(int Index, uint32_t *X, uint32_t *Y) + { + *X = this->Buffers[Index]->CursorX; + *Y = this->Buffers[Index]->CursorY; + } + void SetPixel(uint32_t X, uint32_t Y, uint32_t Color, int Index) { if (X >= this->Buffers[Index]->Width || Y >= this->Buffers[Index]->Height)