All stamps can be forced to start at a particular size
Use the "--stampsize=..." command-line option or "stampsize=..." config. file setting. Use "default" to allow Tux Paint to decide.
This commit is contained in:
parent
a440a0969b
commit
8b1010d671
4 changed files with 68 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ http://www.tuxpaint.org/
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
|
||||||
2007.October.25 (0.9.18)
|
2007.October.26 (0.9.18)
|
||||||
* Interface Improvements:
|
* Interface Improvements:
|
||||||
-----------------------
|
-----------------------
|
||||||
* Improved 'New' and 'Open' interface:
|
* Improved 'New' and 'Open' interface:
|
||||||
|
|
@ -43,6 +43,13 @@ $Id$
|
||||||
(Useful if kids are told to add their name to a picture when they're
|
(Useful if kids are told to add their name to a picture when they're
|
||||||
done, right before printing, but they forget to hit [Enter].)
|
done, right before printing, but they forget to hit [Enter].)
|
||||||
|
|
||||||
|
* All stamps can be forced to start at a particular size
|
||||||
|
(on a scale of 0-10, corresponding to their minimum and maximum size,
|
||||||
|
which depends on the size of the stamp, and the size of the canvas).
|
||||||
|
Use the "--stampsize=..." command-line option or "stampsize=..." config.
|
||||||
|
file setting. Use "default" to allow Tux Paint to decide (its standard
|
||||||
|
behavior).
|
||||||
|
|
||||||
* Documentation Improvements:
|
* Documentation Improvements:
|
||||||
---------------------------
|
---------------------------
|
||||||
* Improved --usage output.
|
* Improved --usage output.
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
bill@newbreedsoftware.com
|
bill@newbreedsoftware.com
|
||||||
http://www.tuxpaint.org/
|
http://www.tuxpaint.org/
|
||||||
|
|
||||||
October 23, 2007
|
October 26, 2007
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -324,6 +324,17 @@ Windows Users
|
||||||
This can be useful for people who prefer things right-to-left,
|
This can be useful for people who prefer things right-to-left,
|
||||||
rather than left-to-right.
|
rather than left-to-right.
|
||||||
|
|
||||||
|
stampsize=SIZE
|
||||||
|
|
||||||
|
Use this option to force Tux Paint to set the starting size of
|
||||||
|
all stamps. The SIZE value should be between 0 (smallest) and 10
|
||||||
|
(largest). The size is relative to the available sizes of the
|
||||||
|
stamp, which depends on the stamp itself, and Tux Paint's
|
||||||
|
current canvas size.
|
||||||
|
|
||||||
|
Specifc "default" to let Tux Paint decide (it's standard
|
||||||
|
behavior).
|
||||||
|
|
||||||
keyboard=yes
|
keyboard=yes
|
||||||
|
|
||||||
This allows the keyboard arrow keys to be used to control the
|
This allows the keyboard arrow keys to be used to control the
|
||||||
|
|
@ -669,6 +680,7 @@ Windows Users
|
||||||
--nostampcontrols
|
--nostampcontrols
|
||||||
--sysfonts
|
--sysfonts
|
||||||
--mirrorstamps
|
--mirrorstamps
|
||||||
|
--stampsize=SIZE
|
||||||
--keyboard
|
--keyboard
|
||||||
--savedir DIRECTORY
|
--savedir DIRECTORY
|
||||||
--datadir DIRECTORY
|
--datadir DIRECTORY
|
||||||
|
|
@ -707,6 +719,7 @@ Windows Users
|
||||||
--stampcontrols
|
--stampcontrols
|
||||||
--nosysfonts
|
--nosysfonts
|
||||||
--dontmirrorstamps
|
--dontmirrorstamps
|
||||||
|
--stampsize=default
|
||||||
--mouse
|
--mouse
|
||||||
--saveoverask
|
--saveoverask
|
||||||
--save
|
--save
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ New Breed Software</p>
|
||||||
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
|
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
|
||||||
|
|
||||||
|
|
||||||
<p>October 23, 2007</p>
|
<p>October 26, 2007</p>
|
||||||
|
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
|
|
@ -407,6 +407,18 @@ New Breed Software</p>
|
||||||
rather than left-to-right.</p>
|
rather than left-to-right.</p>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt><code><b>stampsize=<b>SIZE</b></code></dt>
|
||||||
|
<dd>
|
||||||
|
<p>Use this option to force Tux Paint to set the starting size of
|
||||||
|
all stamps. The <code>SIZE</code> value should be between 0 (smallest)
|
||||||
|
and 10 (largest). The size is relative to the available sizes of the
|
||||||
|
stamp, which depends on the stamp itself, and Tux Paint's current
|
||||||
|
canvas size.</p>
|
||||||
|
|
||||||
|
<p>Specifc "<code>default</code>" to let Tux Paint decide
|
||||||
|
(it's standard behavior).</p>
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt><code><b>keyboard=yes</b></code></dt>
|
<dt><code><b>keyboard=yes</b></code></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>This allows the keyboard arrow keys to be used
|
<p>This allows the keyboard arrow keys to be used
|
||||||
|
|
@ -1016,6 +1028,7 @@ New Breed Software</p>
|
||||||
--nostampcontrols<br>
|
--nostampcontrols<br>
|
||||||
--sysfonts<br>
|
--sysfonts<br>
|
||||||
--mirrorstamps<br>
|
--mirrorstamps<br>
|
||||||
|
--stampsize=<i>SIZE</i><br>
|
||||||
--keyboard<br>
|
--keyboard<br>
|
||||||
--savedir <i>DIRECTORY</i><br>
|
--savedir <i>DIRECTORY</i><br>
|
||||||
--datadir <i>DIRECTORY</i><br>
|
--datadir <i>DIRECTORY</i><br>
|
||||||
|
|
@ -1057,6 +1070,7 @@ New Breed Software</p>
|
||||||
--stampcontrols<br>
|
--stampcontrols<br>
|
||||||
--nosysfonts<br>
|
--nosysfonts<br>
|
||||||
--dontmirrorstamps<br>
|
--dontmirrorstamps<br>
|
||||||
|
--stampsize=default<br>
|
||||||
--mouse<br>
|
--mouse<br>
|
||||||
--saveoverask<br>
|
--saveoverask<br>
|
||||||
--save<br>
|
--save<br>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
June 14, 2002 - October 25, 2007
|
June 14, 2002 - October 26, 2007
|
||||||
$Id$
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -846,7 +846,8 @@ static int fullscreen, native_screensize, disable_quit, simple_shapes,
|
||||||
no_button_distinction,
|
no_button_distinction,
|
||||||
mirrorstamps, disable_stamp_controls, disable_save, ok_to_use_lockfile,
|
mirrorstamps, disable_stamp_controls, disable_save, ok_to_use_lockfile,
|
||||||
alt_print_command_default, scrolling = 0,
|
alt_print_command_default, scrolling = 0,
|
||||||
start_blank, autosave_on_quit, rotate_orientation, button_down;
|
start_blank, autosave_on_quit, rotate_orientation, button_down,
|
||||||
|
stamp_size_override;
|
||||||
static int want_alt_printcommand;
|
static int want_alt_printcommand;
|
||||||
static int starter_mirrored, starter_flipped, starter_personal;
|
static int starter_mirrored, starter_flipped, starter_personal;
|
||||||
static Uint8 canvas_color_r, canvas_color_g, canvas_color_b;
|
static Uint8 canvas_color_r, canvas_color_g, canvas_color_b;
|
||||||
|
|
@ -4930,6 +4931,7 @@ static void show_usage(FILE * f, char *prg)
|
||||||
" %s [--sysfonts | --nosysfonts]\n"
|
" %s [--sysfonts | --nosysfonts]\n"
|
||||||
" %s [--nostampcontrols | --stampcontrols]\n"
|
" %s [--nostampcontrols | --stampcontrols]\n"
|
||||||
" %s [--mirrorstamps | --dontmirrorstamps]\n"
|
" %s [--mirrorstamps | --dontmirrorstamps]\n"
|
||||||
|
" %s [--stampsize=[0-10] | --stampsize=default]\n"
|
||||||
" %s [--saveoverask | --saveover | --saveovernew]\n"
|
" %s [--saveoverask | --saveover | --saveovernew]\n"
|
||||||
" %s [--nosave | --save]\n"
|
" %s [--nosave | --save]\n"
|
||||||
" %s [--autosave | --noautosave]\n"
|
" %s [--autosave | --noautosave]\n"
|
||||||
|
|
@ -4963,7 +4965,7 @@ static void show_usage(FILE * f, char *prg)
|
||||||
#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__)
|
#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__)
|
||||||
blank,
|
blank,
|
||||||
#endif
|
#endif
|
||||||
blank, blank, blank, blank);
|
blank, blank, blank, blank, blank);
|
||||||
|
|
||||||
free(blank);
|
free(blank);
|
||||||
}
|
}
|
||||||
|
|
@ -5234,6 +5236,11 @@ static void loadstamp_finisher(stamp_type * sd, unsigned w, unsigned h,
|
||||||
sd->min = lower;
|
sd->min = lower;
|
||||||
sd->size = mid;
|
sd->size = mid;
|
||||||
sd->max = upper;
|
sd->max = upper;
|
||||||
|
|
||||||
|
if (stamp_size_override != -1)
|
||||||
|
{
|
||||||
|
sd->size = (((upper - lower) * stamp_size_override) / 10) + lower;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -6063,6 +6070,7 @@ static void setup(int argc, char *argv[])
|
||||||
no_fancy_cursors = 0;
|
no_fancy_cursors = 0;
|
||||||
hide_cursor = 0;
|
hide_cursor = 0;
|
||||||
#endif
|
#endif
|
||||||
|
stamp_size_override = -1;
|
||||||
only_uppercase = 0;
|
only_uppercase = 0;
|
||||||
promptless_save = SAVE_OVER_PROMPT;
|
promptless_save = SAVE_OVER_PROMPT;
|
||||||
autosave_on_quit = 0;
|
autosave_on_quit = 0;
|
||||||
|
|
@ -6594,6 +6602,16 @@ static void setup(int argc, char *argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (strcmp(argv[i], "--stampsize=default") == 0)
|
||||||
|
{
|
||||||
|
stamp_size_override = -1;
|
||||||
|
}
|
||||||
|
else if (strstr(argv[i], "--stampsize=") == argv[i])
|
||||||
|
{
|
||||||
|
stamp_size_override = atoi(argv[i] + 12);
|
||||||
|
if (stamp_size_override > 10)
|
||||||
|
stamp_size_override = 10;
|
||||||
|
}
|
||||||
else if (strcmp(argv[i], "--record") == 0 ||
|
else if (strcmp(argv[i], "--record") == 0 ||
|
||||||
strcmp(argv[i], "--playback") == 0)
|
strcmp(argv[i], "--playback") == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -15503,6 +15521,16 @@ static void parse_options(FILE * fi)
|
||||||
{
|
{
|
||||||
mirrorstamps = 0;
|
mirrorstamps = 0;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(str, "stampsize=default") == 0)
|
||||||
|
{
|
||||||
|
stamp_size_override = -1;
|
||||||
|
}
|
||||||
|
else if (strstr(str, "stampsize=") == str)
|
||||||
|
{
|
||||||
|
stamp_size_override = atoi(str + 10);
|
||||||
|
if (stamp_size_override > 10)
|
||||||
|
stamp_size_override = 10;
|
||||||
|
}
|
||||||
else if (strcmp(str, "noshortcuts=yes") == 0)
|
else if (strcmp(str, "noshortcuts=yes") == 0)
|
||||||
{
|
{
|
||||||
noshortcuts = 1;
|
noshortcuts = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue