diff options
Diffstat (limited to 'src/base/pngwriter.cc')
-rw-r--r-- | src/base/pngwriter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/pngwriter.cc b/src/base/pngwriter.cc index 3251ac885..9faf23c24 100644 --- a/src/base/pngwriter.cc +++ b/src/base/pngwriter.cc @@ -160,7 +160,7 @@ PngWriter::write(std::ostream &png) const // libpng requires an array of pointers to the frame buffer's rows. std::vector<PixelType> rowPacked(width); for (unsigned y=0; y < height; ++y) { - for (unsigned x=0; x < height; ++x) { + for (unsigned x=0; x < width; ++x) { rowPacked[x] = fb.pixel(x, y); } |