X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fimagefilters.cpp;h=b34027725a93728d6c54c6313efb357904811b97;hb=cdc538e0a242167cd7031d40670d2d4464b87f2c;hp=a995e98d6267d1f13f5bd1f424b3e6614dff6754;hpb=6d61375cc72bad5c569d25c253adca4e3701dd27;p=minetest.git diff --git a/src/imagefilters.cpp b/src/imagefilters.cpp index a995e98d6..b34027725 100644 --- a/src/imagefilters.cpp +++ b/src/imagefilters.cpp @@ -31,8 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc., * transparent. Should be 127 for 3d where alpha is threshold, but 0 for * 2d where alpha is blended. */ -void imageCleanTransparent(video::IImage *src, u32 threshold) { - +void imageCleanTransparent(video::IImage *src, u32 threshold) +{ core::dimension2d dim = src->getDimension(); // Walk each pixel looking for fully transparent ones. @@ -85,8 +85,8 @@ void imageCleanTransparent(video::IImage *src, u32 threshold) { * filter is designed to produce the most accurate results for both upscaling * and downscaling. */ -void imageScaleNNAA(video::IImage *src, const core::rect &srcrect, video::IImage *dest) { - +void imageScaleNNAA(video::IImage *src, const core::rect &srcrect, video::IImage *dest) +{ double sx, sy, minsx, maxsx, minsy, maxsy, area, ra, ga, ba, aa, pw, ph, pa; u32 dy, dx; video::SColor pxl;