Fix bit shifting issue in converter

master
ne0ndrag0n 2021-02-16 22:31:34 -05:00
parent 3c60ff3ffe
commit 9fd5ac3e0b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ pub fn generate( image_filename: &str, output_filename: &str ) {
let mut series: u32 = 0; let mut series: u32 = 0;
for cell_x in 0..8 { for cell_x in 0..8 {
let nibble = get_pixel( &img, &mut palette, cell_x + x, cell_y + y ) << ( 7 - cell_x ); let nibble: u32 = get_pixel( &img, &mut palette, cell_x + x, cell_y + y ) << ( ( 7 - cell_x ) * 4 );
series = series | nibble; series = series | nibble;
} }