Added "--allowscreensaver" option, which prevents Tux Paint from disabling
the screensaver or monitor power management while running. (Requires SDL 1.2.12; can also be done by setting the SDL_VIDEO_ALLOW_SCREENSAVER environment variable to '1' before running Tux Paint.)
This commit is contained in:
parent
a7d25d64bf
commit
88af19cac1
4 changed files with 63 additions and 6 deletions
|
|
@ -9,7 +9,7 @@ http://www.tuxpaint.org/
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
|
||||||
2008.February.22 (0.9.19)
|
2008.February.24 (0.9.19)
|
||||||
* New Localizations:
|
* New Localizations:
|
||||||
------------------
|
------------------
|
||||||
* Australian English
|
* Australian English
|
||||||
|
|
@ -75,6 +75,11 @@ $Id$
|
||||||
|
|
||||||
* System-Related Improvements:
|
* System-Related Improvements:
|
||||||
----------------------------
|
----------------------------
|
||||||
|
* Added "--allowscreensaver" option, which prevents Tux Paint from disabling
|
||||||
|
the screensaver or monitor power management while running.
|
||||||
|
(Requires SDL 1.2.12; can also be done by setting the
|
||||||
|
SDL_VIDEO_ALLOW_SCREENSAVER environment variable to '1' before running Tux Paint.)
|
||||||
|
|
||||||
* Removed unfinished, unused record and playback code.
|
* Removed unfinished, unused record and playback code.
|
||||||
|
|
||||||
* Added authorization code to permit Fontconfig files to be installed
|
* Added authorization code to permit Fontconfig files to be installed
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
bill@newbreedsoftware.com
|
bill@newbreedsoftware.com
|
||||||
http://www.tuxpaint.org/
|
http://www.tuxpaint.org/
|
||||||
|
|
||||||
February 17, 2008
|
February 24, 2008
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -105,6 +105,15 @@ Windows Users
|
||||||
screen's current resolution (overriding any "windowsize"
|
screen's current resolution (overriding any "windowsize"
|
||||||
option), as set by the operating system.
|
option), as set by the operating system.
|
||||||
|
|
||||||
|
allowscreensaver=yes
|
||||||
|
|
||||||
|
By default, Tux Paint prevents your system's screensaver from
|
||||||
|
starting up. You can override this by using the
|
||||||
|
"allowscreensaver" option. Note: This requires version 1.2.12 or
|
||||||
|
higher of the SDL library. (You can also do this by setting the
|
||||||
|
"SDL_VIDEO_ALLOW_SCREENSAVER" environment variable on your
|
||||||
|
system to "1".)
|
||||||
|
|
||||||
nosound=yes
|
nosound=yes
|
||||||
Disable sound effects. (Note: Pressing [Alt] + [S] cannot be
|
Disable sound effects. (Note: Pressing [Alt] + [S] cannot be
|
||||||
used to reenable sounds if they were disabled using this
|
used to reenable sounds if they were disabled using this
|
||||||
|
|
@ -671,6 +680,7 @@ Windows Users
|
||||||
--WIDTHxHEIGHT
|
--WIDTHxHEIGHT
|
||||||
--orient=portrait
|
--orient=portrait
|
||||||
--native
|
--native
|
||||||
|
--allowscreensaver
|
||||||
--startblank
|
--startblank
|
||||||
--nosound
|
--nosound
|
||||||
--noquit
|
--noquit
|
||||||
|
|
@ -712,6 +722,7 @@ Windows Users
|
||||||
--windowed
|
--windowed
|
||||||
--800x600
|
--800x600
|
||||||
--orient=landscape
|
--orient=landscape
|
||||||
|
--disablescreensaver
|
||||||
--startlast
|
--startlast
|
||||||
--sound
|
--sound
|
||||||
--quit
|
--quit
|
||||||
|
|
|
||||||
|
|
@ -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>February 17, 2008</p>
|
<p>February 24, 2008</p>
|
||||||
|
|
||||||
|
|
||||||
</center>
|
</center>
|
||||||
|
|
@ -145,6 +145,15 @@ New Breed Software</p>
|
||||||
"<code>windowsize</code>" option), as set by the operating system.
|
"<code>windowsize</code>" option), as set by the operating system.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt><code><b>allowscreensaver=yes</b></code></dt>
|
||||||
|
<dd>
|
||||||
|
<p>By default, <i>Tux Paint</i> prevents your system's screensaver
|
||||||
|
from starting up. You can override this by using the "<code>allowscreensaver</code>"
|
||||||
|
option. Note: This requires version 1.2.12 or higher of the SDL library.
|
||||||
|
(You can also do this by setting the "<code>SDL_VIDEO_ALLOW_SCREENSAVER</code>"
|
||||||
|
environment variable on your system to "<code>1</code>".)
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt><code><b>nosound=yes</b></code></dt>
|
<dt><code><b>nosound=yes</b></code></dt>
|
||||||
<dd>
|
<dd>
|
||||||
Disable sound effects. (Note: Pressing <b>[Alt]</b> + <b>[S]</b>
|
Disable sound effects. (Note: Pressing <b>[Alt]</b> + <b>[S]</b>
|
||||||
|
|
@ -1040,6 +1049,7 @@ New Breed Software</p>
|
||||||
--<i>WIDTH</i>x<i>HEIGHT</i><br>
|
--<i>WIDTH</i>x<i>HEIGHT</i><br>
|
||||||
--orient=portrait<br>
|
--orient=portrait<br>
|
||||||
--native<br>
|
--native<br>
|
||||||
|
--allowscreensaver<br>
|
||||||
--startblank<br>
|
--startblank<br>
|
||||||
--nosound<br>
|
--nosound<br>
|
||||||
--noquit<br>
|
--noquit<br>
|
||||||
|
|
@ -1084,6 +1094,7 @@ New Breed Software</p>
|
||||||
--windowed<br>
|
--windowed<br>
|
||||||
--800x600<br>
|
--800x600<br>
|
||||||
--orient=landscape<br>
|
--orient=landscape<br>
|
||||||
|
--disablescreensaver<br>
|
||||||
--startlast<br>
|
--startlast<br>
|
||||||
--sound<br>
|
--sound<br>
|
||||||
--quit<br>
|
--quit<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 - February 18, 2008
|
June 14, 2002 - February 24, 2008
|
||||||
$Id$
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -842,7 +842,7 @@ static void update_canvas(int x1, int y1, int x2, int y2)
|
||||||
|
|
||||||
/* Globals: */
|
/* Globals: */
|
||||||
|
|
||||||
static int fullscreen, native_screensize, disable_quit, simple_shapes,
|
static int disable_screensaver, fullscreen, native_screensize, disable_quit, simple_shapes,
|
||||||
disable_print, print_delay, only_uppercase, promptless_save, grab_input,
|
disable_print, print_delay, only_uppercase, promptless_save, grab_input,
|
||||||
wheely, keymouse, mouse_x, mouse_y,
|
wheely, keymouse, mouse_x, mouse_y,
|
||||||
mousekey_up, mousekey_down, mousekey_left, mousekey_right,
|
mousekey_up, mousekey_down, mousekey_left, mousekey_right,
|
||||||
|
|
@ -4935,6 +4935,7 @@ static void show_usage(FILE * f, char *prg)
|
||||||
"\n"
|
"\n"
|
||||||
" %s [--windowed | --fullscreen]\n"
|
" %s [--windowed | --fullscreen]\n"
|
||||||
" %s [--WIDTHxHEIGHT | --native]\n"
|
" %s [--WIDTHxHEIGHT | --native]\n"
|
||||||
|
" %s [--disablescreensaver | --allowscreensaver ]\n"
|
||||||
" %s [--orient=landscape | --orient=portrait]\n"
|
" %s [--orient=landscape | --orient=portrait]\n"
|
||||||
" %s [--startblank | --startlast]\n"
|
" %s [--startblank | --startlast]\n"
|
||||||
" %s [--sound | --nosound]\n"
|
" %s [--sound | --nosound]\n"
|
||||||
|
|
@ -4975,7 +4976,7 @@ static void show_usage(FILE * f, char *prg)
|
||||||
"\n",
|
"\n",
|
||||||
prg, prg,
|
prg, prg,
|
||||||
blank, blank, blank, blank,
|
blank, blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
blank, blank, blank,
|
blank, blank, blank,
|
||||||
|
|
@ -6075,6 +6076,7 @@ static void setup(int argc, char *argv[])
|
||||||
#else
|
#else
|
||||||
fullscreen = 0;
|
fullscreen = 0;
|
||||||
#endif
|
#endif
|
||||||
|
disable_screensaver = 0;
|
||||||
native_screensize = 0;
|
native_screensize = 0;
|
||||||
rotate_orientation = 0;
|
rotate_orientation = 0;
|
||||||
noshortcuts = 0;
|
noshortcuts = 0;
|
||||||
|
|
@ -6265,6 +6267,14 @@ static void setup(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
fullscreen = 0;
|
fullscreen = 0;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(argv[i], "--disablescreensaver") == 0)
|
||||||
|
{
|
||||||
|
disable_screensaver = 1;
|
||||||
|
}
|
||||||
|
else if (strcmp(argv[i], "--allowscreensaver") == 0)
|
||||||
|
{
|
||||||
|
disable_screensaver = 0;
|
||||||
|
}
|
||||||
else if (strcmp(argv[i], "--startblank") == 0 || strcmp(argv[i], "-b") == 0)
|
else if (strcmp(argv[i], "--startblank") == 0 || strcmp(argv[i], "-b") == 0)
|
||||||
{
|
{
|
||||||
start_blank = 1;
|
start_blank = 1;
|
||||||
|
|
@ -6720,6 +6730,17 @@ static void setup(int argc, char *argv[])
|
||||||
putenv((char *) "SDL_VIDEO_X11_WMCLASS=TuxPaint.TuxPaint");
|
putenv((char *) "SDL_VIDEO_X11_WMCLASS=TuxPaint.TuxPaint");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (disable_screensaver == 0)
|
||||||
|
{
|
||||||
|
putenv((char *) "SDL_VIDEO_ALLOW_SCREENSAVER=1");
|
||||||
|
if (SDL_MAJOR_VERSION < 1 ||
|
||||||
|
(SDL_MAJOR_VERSION >= 1 && SDL_MINOR_VERSION < 2) ||
|
||||||
|
(SDL_MAJOR_VERSION >= 1 && SDL_MINOR_VERSION >= 2 && SDL_PATCHLEVEL < 12))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Note: 'allowscreensaver' requires SDL 1.2.12 or higher\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Test for lockfile, if we're using one: */
|
/* Test for lockfile, if we're using one: */
|
||||||
|
|
||||||
if (ok_to_use_lockfile)
|
if (ok_to_use_lockfile)
|
||||||
|
|
@ -15443,6 +15464,15 @@ static void parse_options(FILE * fi)
|
||||||
fullscreen = 1;
|
fullscreen = 1;
|
||||||
native_screensize = 1;
|
native_screensize = 1;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(str, "disablescreensaver=yes") == 0)
|
||||||
|
{
|
||||||
|
disable_screensaver = 1;
|
||||||
|
}
|
||||||
|
else if (strcmp(str, "disablescreensaver=no") == 0 ||
|
||||||
|
strcmp(str, "allowscreensaver=yes") == 0)
|
||||||
|
{
|
||||||
|
disable_screensaver = 0;
|
||||||
|
}
|
||||||
else if (strcmp(str, "native=yes") == 0)
|
else if (strcmp(str, "native=yes") == 0)
|
||||||
{
|
{
|
||||||
native_screensize = 1;
|
native_screensize = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue