fix typos and casting
This commit is contained in:
@@ -119,7 +119,7 @@ uchar* ROM::LoadGraphicsSheet(int offset) {
|
||||
auto tilesheet_position = Core::Constants::gfx_1_pointer +
|
||||
(offset * Core::Constants::UncompressedSheetSize);
|
||||
auto data = Decompress(tilesheet_position);
|
||||
return SNES3bppTo8bppSheet(data);
|
||||
return SNES3bppTo8bppSheet((uchar*)data);
|
||||
}
|
||||
|
||||
// char *buffer = new char[0x800] AKA sheet_buffer_in 3bpp
|
||||
|
||||
@@ -323,7 +323,7 @@ void Editor::DrawProjectEditor() {
|
||||
BASIC_BUTTON("Retrieve Graphics") {
|
||||
if (rom_.isLoaded()) {
|
||||
if (!loaded_image) {
|
||||
image_data = rom_.LoadGraphicsSheet(current_set.pc_tiles_location_);
|
||||
image_data = rom_.LoadGraphicsSheet(current_set_.pc_tiles_location_);
|
||||
loaded_image = true;
|
||||
} else {
|
||||
// TODO: build the sdl surface from the tilesheet data
|
||||
|
||||
Reference in New Issue
Block a user