Skip to content

Commit

Permalink
Adjust PNG encoder color type to match what's read from gl2
Browse files Browse the repository at this point in the history
This should fix images produced by the -o flag.
  • Loading branch information
dhedlund committed Dec 14, 2013
1 parent c5d81f1 commit 608cd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/compositing/run.rs
Expand Up @@ -373,7 +373,7 @@ pub fn run_compositor(compositor: &CompositorTask) {
let img = png::Image {
width: width as u32,
height: height as u32,
color_type: png::RGBA8,
color_type: png::RGB8,
pixels: pixels,
};
let res = png::store_png(&img, &path);
Expand Down

5 comments on commit 608cd61

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at dhedlund@608cd61

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging dhedlund/servo/png_color_type = 608cd61 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dhedlund/servo/png_color_type = 608cd61 merged ok, testing candidate = 4440476

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 4440476

Please sign in to comment.