Support hypothetical big-endian users

This commit is contained in:
2025-02-15 18:33:18 -05:00
parent b888d1140a
commit f7cf960b62
5 changed files with 100 additions and 33 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ pub fn generic_palette(color: Color32) -> [Color32; 4] {
GENERIC_PALETTE.map(|brt| shade(brt, color))
}
pub fn parse_palette(palette: u8, brts: &[u8], color: Color32) -> [Color32; 4] {
pub fn parse_palette(palette: u8, brts: &[u8; 8], color: Color32) -> [Color32; 4] {
let shades = [
Color32::BLACK,
shade(brts[0], color),
@@ -117,7 +117,7 @@ impl CellData {
}
pub fn read_char_row(
char: &[u16],
char: &[u16; 8],
hflip: bool,
vflip: bool,
row: usize,