add BitmapFormat enum, update Reformat

This commit is contained in:
scawful
2024-08-06 18:01:24 -04:00
parent a630fd0f23
commit 7488551335
2 changed files with 13 additions and 6 deletions

View File

@@ -241,6 +241,9 @@ void Bitmap::Reformat(int format) {
GetSnesPixelFormat(format)),
SDL_Surface_Deleter());
surface_->pixels = pixel_data_;
if (!ApplyPalette(palette_).ok()) {
// Some sort of error occurred, throw an exception?
}
active_ = true;
}