aboutsummaryrefslogtreecommitdiff
path: root/src/imagefilters.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-01 00:19:10 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-01 00:19:10 -0400
commitddf96c7a17e45cdfb4a8060c3b0f74f17f7156df (patch)
tree4343f51b8136ccf64762b8104442a6456edbbb84 /src/imagefilters.cpp
parent6d61375cc72bad5c569d25c253adca4e3701dd27 (diff)
downloadminetest-ddf96c7a17e45cdfb4a8060c3b0f74f17f7156df.tar.gz
minetest-ddf96c7a17e45cdfb4a8060c3b0f74f17f7156df.tar.bz2
minetest-ddf96c7a17e45cdfb4a8060c3b0f74f17f7156df.zip
Fix some minor details from 6d61375
Diffstat (limited to 'src/imagefilters.cpp')
-rw-r--r--src/imagefilters.cpp8
1 files changed, 4 insertions, 4 deletions
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<u32> 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<s32> &srcrect, video::IImage *dest) {
-
+void imageScaleNNAA(video::IImage *src, const core::rect<s32> &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;