Refactor Bitmap class: remove deprecated constructor and update Initialize method signature

This commit is contained in:
scawful
2025-03-20 18:17:45 -04:00
parent d8a783a69a
commit 95df0b5d8b
4 changed files with 6 additions and 14 deletions

View File

@@ -6,9 +6,11 @@
#endif
#include <cstdint>
#include <future>
#include <memory>
#include "absl/status/status.h"
#include "app/core/platform/renderer.h"
#include "app/gfx/snes_palette.h"
#include "util/macro.h"
@@ -209,10 +211,6 @@ void Bitmap::SaveSurfaceToFile(std::string_view filename) {
SDL_SaveBMP(surface_.get(), filename.data());
}
Bitmap::Bitmap(int width, int height, int depth, int data_size) {
Create(width, height, depth, std::vector<uint8_t>(data_size, 0));
}
void Bitmap::Initialize(int width, int height, int depth,
std::span<uint8_t> &data) {
width_ = width;