Now actually fix the scaling function.

This commit is contained in:
2017-10-13 15:14:15 +02:00
parent 5df5c1c13c
commit f413c30279
2 changed files with 30 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ void PNGDumper::dumpImageSeries(const LayerData &layer)
// advance the buffer;
data += imagePixels;
clamp(buffer.begin(), buffer.end(), 0.0, 255.0);
rescale(buffer.begin(), buffer.end(), 0.0, 255.0);
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) {