Support hypothetical big-endian users
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user