From f0e9d7b8c3c1d49829874b1d291e7fc234d50324 Mon Sep 17 00:00:00 2001
From: Albert Cahalan
nomirror" to the stamp's data file.
+ ++By default, Tux Paint assumes that your stamp is sized + appropriately for unscaled display on a 608x472 canvas. This is + the original Tux Paint canvas size, provided by a 640x480 screen. + Tux Paint will then adjust the stamp according to the current + canvas size and, if enabled, the user's stamp size controls.
+ +If your stamp would be too big or too small, you can specify + a scale factor. If your stamp would be 2.5 times as wide (or tall) + as it should be, add the option "
+scale 40%" or + "scale 5/2" or "scale 2.5" + or "scale 2:5" to your image. You may include + an "=" if you wish, as in + "scale=40%".
diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 098a5e256..a210d11c0 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -8547,7 +8547,7 @@ static info_type * loadinfo(const char * const fname) if (tmp > 0.0001 && tmp < 10000.0) inf.ratio = tmp; } - else if (strchr(cp,':')) + else if (strchr(cp,'/')) { tmp = strtod(cp,&cp); while(*cp && !isdigit(*cp)) @@ -8556,7 +8556,7 @@ static info_type * loadinfo(const char * const fname) if (tmp>0.0001 && tmp<10000.0 && tmp2>0.0001 && tmp2<10000.0 && tmp/tmp2>0.0001 && tmp/tmp2<10000.0) inf.ratio = tmp/tmp2; } - else if (strchr(cp,'/')) + else if (strchr(cp,':')) { tmp = strtod(cp,&cp); while(*cp && !isdigit(*cp))