Bitmap housekeeping

This commit is contained in:
Justin Scofield
2022-07-12 21:33:32 -04:00
parent 0beaf375fa
commit 9b523fc253
2 changed files with 4 additions and 2 deletions

View File

@@ -59,7 +59,8 @@ void Bitmap::Create(int width, int height, int depth, int size) {
surface_->pixels = pixel_data_;
}
void Bitmap::Create(int width, int height, int depth, uchar *data, int size, const SNESPalette &palette) {
void Bitmap::Create(int width, int height, int depth, uchar *data, int size,
SNESPalette &palette) {
width_ = width;
height_ = height;
depth_ = depth;

View File

@@ -19,7 +19,8 @@ class Bitmap {
void Create(int width, int height, int depth, uchar *data);
void Create(int width, int height, int depth, int data_size);
void Create(int width, int height, int depth, uchar *data, int size, const SNESPalette &palette);
void Create(int width, int height, int depth, uchar *data, int size,
SNESPalette &palette);
void CreateTexture(std::shared_ptr<SDL_Renderer> renderer);
void ApplyPalette(const SNESPalette &palette);