This commit is contained in:
Jorijn van der Graaf 2025-11-24 06:08:35 +01:00
commit 83b45a0dea
9 changed files with 251 additions and 7 deletions

View file

@ -28,9 +28,13 @@ UiElementBufferBufferBase::UiElementBufferBufferBase(std::uint_fast32_t width, s
}
void UiElementBufferBufferBase::Create(std::uint_fast32_t width, std::uint_fast32_t height) {
buffer.resize(width*height);
this->width = width;
this->height = height;
buffer.resize(width * height);
}
void UiElementBufferBufferBase::Resize(std::uint_fast32_t width, std::uint_fast32_t height) {
this->width = width;
this->height = height;
buffer.resize(width*height);
}
void UiElementBufferBufferBase::Resize(std::uint_fast32_t width, std::uint_fast32_t height, std::uint_fast32_t offsetX, std::uint_fast32_t offsetY) {