Create Splash.cpp

This commit is contained in:
2022-09-28 20:53:32 +02:00
parent 403cfc1948
commit 6d86f4e99f
4 changed files with 9 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ fn encode<T: PSXImageConverter>(image: T, clut_align: ClutAlignment, mut output:
}
};
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size {}, {} needs to be even", width, height)}))?;
let header = Header::encode(width, height, pal_width, pal_height).ok_or(Error::from_callback(|| {format!("Image size (width: {}, height: {}) needs to be even", width, height)}))?;
tool_helper::raw::write_generic(&mut output, header)?;
if let Some(palette) = palette {