From ec91346acd3bdf2d35a70dc547d01e0aed47daac Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Nov 2022 04:41:51 +0200 Subject: [PATCH] Added GetBuffer() --- include/display.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/display.hpp b/include/display.hpp index 094aa0b..2009261 100644 --- a/include/display.hpp +++ b/include/display.hpp @@ -126,6 +126,7 @@ namespace Video warn("Buffer %d already exists, skipping creation", Index); } void SetBuffer(int Index) { memcpy(this->framebuffer.BaseAddress, this->Buffers[Index]->Buffer, this->Buffers[Index]->Size); } + ScreenBuffer *GetBuffer(int Index) { return this->Buffers[Index]; } void ClearBuffer(int Index) { memset(this->Buffers[Index]->Buffer, 0, this->Buffers[Index]->Size); } void DeleteBuffer(int Index) {