Simplify some silly expression.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3503 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2010-01-23 00:55:25 +00:00
parent 40175c65c9
commit 2670e80711
+2 -4
View File
@@ -580,10 +580,8 @@ void rotozoomSurfaceSizeTrig(int width, int height, double angle, double zoom, i
cy = *canglezoom * y; cy = *canglezoom * y;
sx = *sanglezoom * x; sx = *sanglezoom * x;
sy = *sanglezoom * y; sy = *sanglezoom * y;
dstwidthhalf = MAX((int) dstwidthhalf = MAX((int) ceil(fabs(cx) + fabs(sy)), 1);
ceil(MAX(MAX(MAX(fabs(cx + sy), fabs(cx - sy)), fabs(-cx + sy)), fabs(-cx - sy))), 1); dstheighthalf = MAX((int) ceil(fabs(sx) + fabs(cy)), 1);
dstheighthalf = MAX((int)
ceil(MAX(MAX(MAX(fabs(sx + cy), fabs(sx - cy)), fabs(-sx + cy)), fabs(-sx - cy))), 1);
*dstwidth = 2 * dstwidthhalf; *dstwidth = 2 * dstwidthhalf;
*dstheight = 2 * dstheighthalf; *dstheight = 2 * dstheighthalf;
} }