|
@@ -15,7 +15,7 @@ pub struct FramebufferTag<'a> {
|
|
|
#[derive(Debug, PartialEq)]
|
|
|
pub enum FramebufferType<'a> {
|
|
|
Indexed {
|
|
|
- palette: &'a [FramebufferColor]
|
|
|
+ palette: &'a [FramebufferColor]
|
|
|
},
|
|
|
RGB {
|
|
|
red: FramebufferField,
|
|
@@ -61,8 +61,8 @@ pub fn framebuffer_tag<'a>(tag: &'a Tag) -> FramebufferTag<'a> {
|
|
|
1 => {
|
|
|
let red_pos = reader.read_u8(); // These refer to the bit positions of the MSB of each field
|
|
|
let red_mask = reader.read_u8(); // And then the length of the field from MSB to LSB
|
|
|
- let green_pos = reader.read_u8();
|
|
|
- let green_mask = reader.read_u8();
|
|
|
+ let green_pos = reader.read_u8();
|
|
|
+ let green_mask = reader.read_u8();
|
|
|
let blue_pos = reader.read_u8();
|
|
|
let blue_mask = reader.read_u8();
|
|
|
FramebufferType::RGB {
|