Scales must be multiplied by factor, not initial scale zoom
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Fri, 15 Aug 2008 22:09:10 +0000 (19:09 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Fri, 15 Aug 2008 22:09:10 +0000 (19:09 -0300)
movie.c

diff --git a/movie.c b/movie.c
index 05595a4..b7d65a8 100644 (file)
--- a/movie.c
+++ b/movie.c
@@ -193,14 +193,14 @@ GetNextImage (SDL_Surface *image)
   static double rx = RX, ry = RY, factor = 0.5;
   if (rx < 0.25)
   {
-    factor = 2;
+    factor = 1.05;
   }
   if (rx > 2)
   {
-    factor = 0.5;
+    factor = 0.95238095238095233;
   }
-  rx *= RX;
-  ry *= RY;
+  rx *= factor;
+  ry *= factor;
   center = GetNextPoint ();
   slice = SDL_CreateRGBSurface (SDL_SWSURFACE, WIDTH*rx, HEIGHT*ry,
                                 32,