Diff of /panTools.cpp [7c9a40] .. [9be1ae] Maximize Restore

  Switch to side-by-side view

--- a/panTools.cpp
+++ b/panTools.cpp
@@ -69,7 +69,7 @@
 extern "C" void FourToThreeBPP(Image *im);
 extern "C" void CopyImageData(Image *dest, Image *src);
 extern "C" void SetImageDefaults(Image *im);
-extern "C" void filter_main(TrformStr *TrPtr, struct size_Prefs *spref);
+extern "C" void filter_main(TrformStr *TrPtr, struct stitcher_Prefs *spref);
 extern "C" int writePSD(Image *im, fullPath* fname);
 extern "C" void myfree(void **hdl);
 */
@@ -115,8 +115,6 @@
   }
 #else
   {
-    //hDllInstance = GetDLLInstance();
-    DLLInit(GetDLLInstance(), DLL_PROCESS_ATTACH, NULL);
     DLL.FourToThreeBPP = FourToThreeBPP;
     DLL.SetWindowOwner = SetWindowOwner;
     DLL.CopyImageData = CopyImageData;
@@ -248,6 +246,9 @@
     // 1st call to filter_main
     PAN.tr.mode = _setprefs;
     DLL.SetWindowOwner((HWND)platform->hwnd);
+    #ifndef pano13DYNAMICLINK
+      DLLInit(GetDLLInstance(), DLL_PROCESS_ATTACH, NULL);
+    #endif
     DLL.filter_main(&PAN.tr, &PAN.sprefs);
     if (!PAN.tr.success)
     {
@@ -258,8 +259,9 @@
   }
 
   // update tr info
-  PAN.tr.gamma = PAN.sprefs.gamma;
+  PAN.tr.gamma        = PAN.sprefs.gamma;
   PAN.tr.interpolator = PAN.sprefs.interpolator;
+  PAN.tr.fastStep     = PAN.sprefs.fastStep;
 
   // get image from photoshop
   buf = memAlloc(memDynamic, PHO.imageSize);