housekeeping

This commit is contained in:
Justin Scofield
2022-07-20 21:40:18 -04:00
parent d9e986d769
commit d2da16b47d
5 changed files with 19 additions and 20 deletions

View File

@@ -76,17 +76,16 @@ void ROM::LoadAllGraphicsData() {
data = Decompress(gfx_addr, core::UncompressedSheetSize);
}
auto converted_sheet = SNES3bppTo8bppSheet(data);
gfx::Bitmap tilesheet_bmp(core::kTilesheetWidth, core::kTilesheetHeight,
core::kTilesheetDepth, converted_sheet);
core::kTilesheetDepth, SNES3bppTo8bppSheet(data));
tilesheet_bmp.CreateTexture(sdl_renderer_);
graphics_bin_[i] = tilesheet_bmp;
for (int j = 0; j < sizeof(converted_sheet); j++) {
buffer[j + buffer_pos] = converted_sheet[j];
for (int j = 0; j < sizeof(data); j++) {
buffer[j + buffer_pos] = data[j];
}
buffer_pos += sizeof(converted_sheet);
buffer_pos += sizeof(data);
}
master_gfx_bin_ = buffer;