Browse Source

Fix merge conflict

tuomas56 6 years ago
parent
commit
595637b9a5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/framebuffer.rs

+ 3 - 3
src/framebuffer.rs

@@ -96,10 +96,10 @@ pub fn framebuffer_tag<'a>(tag: &'a Tag) -> FramebufferTag<'a> {
             FramebufferType::Indexed { palette }
         },
         1 => {
-            let red_pos = reader.read_u8();     
-            let red_mask = reader.read_u8();    
+            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_mask = reader.read_u8();  
             let blue_pos = reader.read_u8();
             let blue_mask = reader.read_u8();
             FramebufferType::RGB {