Skip to content

Commit

Permalink
Merge pull request #120 from PistonDevelopers/typo_fix
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
nwin committed Oct 25, 2014
2 parents c37cfaf + 5585f21 commit 9341e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gif/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl<R: Reader> ImageDecoder for GIFDecoder<R> {
}
}

fn expand_image(palete: &[(u8, u8, u8)],
fn expand_image(palette: &[(u8, u8, u8)],
indices: &[u8],
y0: uint,
x0: uint,
Expand All @@ -360,7 +360,7 @@ fn expand_image(palete: &[(u8, u8, u8)],
continue
}

let (r, g, b) = palete[index as uint];
let (r, g, b) = palette[index as uint];

image[(y0 + y) * stride + x0 * 3 + x * 3 + 0] = r;
image[(y0 + y) * stride + x0 * 3 + x * 3 + 1] = g;
Expand Down

0 comments on commit 9341e49

Please sign in to comment.