Small refactoring changes.

This commit is contained in:
Pavel Krajcevski 2013-10-03 14:12:48 -04:00
parent 160fbb5e39
commit 30e0337496

View File

@ -408,7 +408,7 @@ void Image::ContentAwareDownscale(uint32 xtimes, uint32 ytimes,
result.Component(c) = static_cast<uint8>(Clamp(I0 + 0.25f*It, 0.0f, 1.0f) * scale + 0.5f); result.Component(c) = static_cast<uint8>(Clamp(I0 + 0.25f*It, 0.0f, 1.0f) * scale + 0.5f);
} }
downscaledPixels[j * newHeight + i] = result; downscaledPixels[j * newWidth + i] = result;
} }
} }