fixed rotation: for some reason 90 and 270 degrees had to be switched
authorArun Persaud <arun@nubati.net>
Tue, 23 Feb 2010 07:20:13 +0000 (23:20 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 23 Feb 2010 07:20:13 +0000 (23:20 -0800)
phpfspot.class.php

index 5dedc2c..111b03e 100644 (file)
@@ -1770,13 +1770,13 @@ class PHPFSPOT {
                   case 4: /* bottom, right */
                      $flip_vert = true; break;
                   case 5: /* left side, top */
-                     $rotate = 90; $flip_vert = true; break;
+                     $rotate = 270; $flip_vert = true; break;
                   case 6: /* right side, top */
-                     $rotate = 90; break;
+                     $rotate = 270; break;
                   case 7: /* left side, bottom */
-                     $rotate = 270; $flip_vert = true; break;
+                     $rotate = 90; $flip_vert = true; break;
                   case 8: /* right side, bottom */
-                     $rotate = 270; break;
+                     $rotate = 90; break;
                }
             }