This commit is contained in:
Glenn Maynard
2002-10-31 03:55:50 +00:00
parent 16b514cc0b
commit 6e0c622850
+4 -10
View File
@@ -1,9 +1,8 @@
/* /*
* SDL_rotozoom.c - rotozoomer for 32bit or 8bit surfaces
SDL_rotozoom.c - rotozoomer for 32bit or 8bit surfaces *
* LGPL (c) A. Schiffler, Glenn Maynard
LGPL (c) A. Schiffler, Glenn Maynard */
*/
#include "SDL_rotozoom.h" #include "SDL_rotozoom.h"
@@ -131,10 +130,6 @@ void zoomSurfaceRGBA(SDL_Surface * src, SDL_Surface * dst)
#define VALUE_LIMIT 0.001 #define VALUE_LIMIT 0.001
/* Local rotozoom-size function with trig result return */
/* /*
zoomSurface() zoomSurface()
@@ -154,7 +149,6 @@ void zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int *dst
if (zoomx < VALUE_LIMIT) zoomx = VALUE_LIMIT; if (zoomx < VALUE_LIMIT) zoomx = VALUE_LIMIT;
if (zoomy < VALUE_LIMIT) zoomy = VALUE_LIMIT; if (zoomy < VALUE_LIMIT) zoomy = VALUE_LIMIT;
/* Calculate target size */ /* Calculate target size */
*dstwidth = (int) ((double) width * zoomx); *dstwidth = (int) ((double) width * zoomx);
*dstheight = (int) ((double) height * zoomy); *dstheight = (int) ((double) height * zoomy);