GNOME Bugzilla – Bug 331584
Fix the Spyrogimp script
Last modified: 2007-11-02 18:37:48 UTC
The Spyrogimp script isn't working properly in Tiny-Fu as compared to Script-Fu. It might have something to do with the fact that the values for the inner and outer teeth appear in the dialog box with one decimal point showing in Tiny-Fu where they are shown with no decimal point in Script-Fu. Is there a problem with the implementation of SF_ADJUSTMENT type in Tiny-Fu?
The problem has something to do with the different interpreter used in Tiny-Fu vs. Script-Fu. Using the console mode of both Scheme based plug-ins I found there is a difference in the value returned from (calc-min-mult 86 70). Script-Fu returns a value of 3010 where Tiny-Fu returns a value of 64.
Fixed the problem by using the tinyscheme lcm procedure instead of the scripts calc-min-mult. Need to investigate why calc-min-mult works differently in Tiny-Fu. 2006-06-01 Kevin Cozens <kcozens@cvs.gnome.org> * scripts/spyrogimp.sct: Removed calc-min-mult procedure. Use the tinyscheme lcm library procedure instead. Fixes bug #331584. Changed defaults for number of teeth to match the values used in Script-Fu. Made tiny-fu-spyrogimp-internal a private procedure.
The original problem was caused by an error in the fmod library procedure. The definition for this procedure has been fixed.