Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function call and variable screw up #32

Merged
merged 1 commit into from Apr 18, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Fix function call and variable screw up

  • Loading branch information
evilpie committed Apr 18, 2014
commit 7139782adc3e1ca42a53a119d9ee07945cd9c299
4 lib.rs
@@ -134,8 +134,8 @@ pub fn load_png_from_memory(image: &[u8]) -> Result<Image,~str> {
ffi::png_set_interlace_handling(png_ptr);
ffi::png_read_update_info(png_ptr, info_ptr);

let updated_color_type = ffi::png_get_bit_depth(&*png_ptr, &*info_ptr);
let updated_bit_depth = ffi::png_get_color_type(&*png_ptr, &*info_ptr);
let updated_bit_depth = ffi::png_get_bit_depth(&*png_ptr, &*info_ptr);
let updated_color_type = ffi::png_get_color_type(&*png_ptr, &*info_ptr);

let (color_type, pixel_width) = match (updated_color_type as c_int, updated_bit_depth) {
(ffi::COLOR_TYPE_RGB, 8) |
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.