On Thu, 2004-11-25 at 01:14, Karl Ove Hufthammer wrote: > Albert Cahalan <[EMAIL PROTECTED]> wrote in
> > I split the difference. So if the object is 100x100 on a > > 500x300 canvas, it'll ideally be 141x141 on a 1000x600 > > canvas. The code will find the nearest integer ratio to > > this, currently 3/2, resulting in a 150x150 stamp size. > > I'm not sure I like this. If we have several stamps (e.g. the > fruit stamps) they should scale by the *same* amount, not by an > integer ratio. If I have understood things correctly, your code > means that an apple may look larger than a banana when scaled. That's not changed. With simplified names, the code now works like this: scale = global_scale_factor * stamp_scale_factor; Normally, stamp_scale_factor is 1. You can change it via the scale option in a *.dat file. The global_scale_factor is set based on screen size. If the canvas is 4 times as wide as the original one that Tux Paint started with, you'll get a 2. From a 9 (huge!!!) you'd get a 3. From 2, you get 1.414... Prior to use, the scale factor is rounded off to the nearest available step. So 1.414 gives 1.5 currently. _______________________________________________ Tuxpaint-dev mailing list [EMAIL PROTECTED] http://tux4kids.net/mailman/listinfo/tuxpaint-dev
