From 2670e80711ff93822f360d5002990ad58b7a6e6b Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Sat, 23 Jan 2010 00:55:25 +0000 Subject: [PATCH] Simplify some silly expression. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3503 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/libs/graphics/sdl/rotozoom.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sc2/src/libs/graphics/sdl/rotozoom.c b/sc2/src/libs/graphics/sdl/rotozoom.c index 8fd262682..449315029 100644 --- a/sc2/src/libs/graphics/sdl/rotozoom.c +++ b/sc2/src/libs/graphics/sdl/rotozoom.c @@ -580,10 +580,8 @@ void rotozoomSurfaceSizeTrig(int width, int height, double angle, double zoom, i cy = *canglezoom * y; sx = *sanglezoom * x; sy = *sanglezoom * y; - dstwidthhalf = MAX((int) - ceil(MAX(MAX(MAX(fabs(cx + sy), fabs(cx - sy)), fabs(-cx + sy)), fabs(-cx - sy))), 1); - dstheighthalf = MAX((int) - ceil(MAX(MAX(MAX(fabs(sx + cy), fabs(sx - cy)), fabs(-sx + cy)), fabs(-sx - cy))), 1); + dstwidthhalf = MAX((int) ceil(fabs(cx) + fabs(sy)), 1); + dstheighthalf = MAX((int) ceil(fabs(sx) + fabs(cy)), 1); *dstwidth = 2 * dstwidthhalf; *dstheight = 2 * dstheighthalf; }