From d9973a01b5189192893cd56395775e40d58ded7e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 25 Oct 2022 15:23:45 +0300 Subject: [PATCH] Added GetBufferCursor --- include/display.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/display.hpp b/include/display.hpp index 1d0d47f..094aa0b 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)