Fix bug in palette exporter

master
ne0ndrag0n 2021-02-14 11:03:32 -05:00
parent 6f10fa74f9
commit 8530e0d4be
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ pub fn generate( image_filename: &str, output_filename: &str ) {
let mut output_palette: Vec< u8 > = Vec::new(); let mut output_palette: Vec< u8 > = Vec::new();
for i in 0..palette.len() { for i in 0..palette.len() {
let bytes = palette[ i ].to_be_bytes(); let bytes = palette[ i ].to_be_bytes();
for i in 0..4 { for i in 0..2 {
output_palette.push( bytes[ i ] ); output_palette.push( bytes[ i ] );
} }
} }