mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 07:24:37 +00:00
Added GetBufferCursor
This commit is contained in:
parent
589b3f9d4b
commit
d9973a01b5
@ -135,12 +135,19 @@ namespace Video
|
|||||||
this->Buffers[Index]->Checksum = 0; // Making sure that the buffer is not used anymore
|
this->Buffers[Index]->Checksum = 0; // Making sure that the buffer is not used anymore
|
||||||
delete this->Buffers[Index];
|
delete this->Buffers[Index];
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetBufferCursor(int Index, uint32_t X, uint32_t Y)
|
void SetBufferCursor(int Index, uint32_t X, uint32_t Y)
|
||||||
{
|
{
|
||||||
this->Buffers[Index]->CursorX = X;
|
this->Buffers[Index]->CursorX = X;
|
||||||
this->Buffers[Index]->CursorY = Y;
|
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)
|
void SetPixel(uint32_t X, uint32_t Y, uint32_t Color, int Index)
|
||||||
{
|
{
|
||||||
if (X >= this->Buffers[Index]->Width || Y >= this->Buffers[Index]->Height)
|
if (X >= this->Buffers[Index]->Width || Y >= this->Buffers[Index]->Height)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user