summaryrefslogtreecommitdiffstats
path: root/base/gfx/png_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/png_encoder.cc')
-rwxr-xr-xbase/gfx/png_encoder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gfx/png_encoder.cc b/base/gfx/png_encoder.cc
index b47db42..2130770 100755
--- a/base/gfx/png_encoder.cc
+++ b/base/gfx/png_encoder.cc
@@ -177,7 +177,8 @@ bool PNGEncoder::Encode(const unsigned char* input, ColorFormat format,
if (!converter) {
// No conversion needed, give the data directly to libpng.
for (int y = 0; y < h; y ++)
- png_write_row(png_ptr, const_cast<unsigned char*>(&input[y * row_byte_width]));
+ png_write_row(png_ptr,
+ const_cast<unsigned char*>(&input[y * row_byte_width]));
} else {
// Needs conversion using a separate buffer.
unsigned char* row = new unsigned char[w * output_color_components];