Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2774)

Unified Diff: core/cross/bitmap_png.cc

Issue 159168: This fixes a number of things that are warnings in the Mac compiler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/cross/bitmap_png.cc
===================================================================
--- core/cross/bitmap_png.cc (revision 21208)
+++ core/cross/bitmap_png.cc (working copy)
@@ -199,7 +199,7 @@
// Turn on interlace handling. REQURIED if you are not using
// png_read_image(). To see how to handle interlacing passes,
// see the png_read_row() method below:
- int png_number_passes = png_set_interlace_handling(png_ptr);
+ png_set_interlace_handling(png_ptr);
// Execute any setup steps for each Transform, i.e. to gamma correct and
// add the background to the palette and update info structure. REQUIRED
@@ -299,7 +299,7 @@
}
scoped_array<png_bytep> row_pointers(new png_bytep[height_]);
- for (unsigned int i = 0; i < height_; ++i) {
+ for (int i = 0; i < height_; ++i) {
row_pointers[height_-1-i] = image_data_.get() + i * width_ * 4;
}

Powered by Google App Engine
This is Rietveld 408576698