From 9b523fc253167225b787f92893d050b591b56b97 Mon Sep 17 00:00:00 2001 From: Justin Scofield Date: Tue, 12 Jul 2022 21:33:32 -0400 Subject: [PATCH] Bitmap housekeeping --- src/app/gfx/bitmap.cc | 3 ++- src/app/gfx/bitmap.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/gfx/bitmap.cc b/src/app/gfx/bitmap.cc index c65b168d..0d00bba3 100644 --- a/src/app/gfx/bitmap.cc +++ b/src/app/gfx/bitmap.cc @@ -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; diff --git a/src/app/gfx/bitmap.h b/src/app/gfx/bitmap.h index f3f3ea39..1c696f48 100644 --- a/src/app/gfx/bitmap.h +++ b/src/app/gfx/bitmap.h @@ -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 renderer); void ApplyPalette(const SNESPalette &palette);