Show progress bar while loading (more) stamps

This commit is contained in:
Bill Kendrick 2020-03-15 13:06:13 -07:00
parent 2860da7668
commit ad4bfde57c
4 changed files with 15 additions and 10 deletions

View file

@ -2,13 +2,13 @@ CHANGES.txt for Tux Paint
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2019
Copyright (c) 2002-2020
Various contributors (see below, and AUTHORS.txt)
http://www.tuxpaint.org/
$Id$
2019.Sep.25 (0.9.24)
2020.Mar.25 (0.9.24)
* New tools
---------
* Fill
@ -36,6 +36,9 @@ $Id$
Use "--newcolorslast" option.
(Suggested by Bernard Verhaeghe)
* Show progress bar while loading (more) stamps, to avoid
looking hung on slower systems or with complicated stamp images.
* Recognize signals (SIGUSR1 and SIGUSR2) on POSIX systems,
which causes Tux Paint to quit, first saving the current drawing
(if unsaved) (like "--autosave"), either saving a new image

View file

@ -3,10 +3,10 @@
A simple drawing program for children
Copyright 2002-2019 by various contributors; see AUTHORS.txt
Copyright 2002-2020 by various contributors; see AUTHORS.txt
http://www.tuxpaint.org/
June 14, 2002 - September 21, 2019
June 14, 2002 - March 15, 2019
----------------------------------------------------------------------

View file

@ -17,12 +17,12 @@ version
</h1>
<h3>A simple drawing program for children</h3>
<p>Copyright 2002-2019 by various contributors; see AUTHORS.txt<br>
<p>Copyright 2002-2020 by various contributors; see AUTHORS.txt<br>
<a href="http://www.tuxpaint.org/">http://www.tuxpaint.org/</a></p>
<p>June 14, 2002 -
September 21, 2019</p>
March 15, 2019</p>
</center>

View file

@ -3,7 +3,7 @@
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2019
Copyright (c) 2002-2020
by various contributors; see AUTHORS.txt
http://www.tuxpaint.org/
@ -22,7 +22,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
June 14, 2002 - October 5, 2019
June 14, 2002 - March 15, 2020
*/
@ -8850,7 +8850,7 @@ static void draw_stamps(void)
for (stamp = stamp_scroll[stamp_group]; stamp < stamp_scroll[stamp_group] + max; stamp++)
{
i = stamp - stamp_scroll[stamp_group];
show_progress_bar(screen);
dest.x = ((i % 2) * 48) + (WINDOW_WIDTH - 96);
dest.y = ((i / 2) * 48) + 40 + off_y;
@ -9069,6 +9069,8 @@ static void draw_stamps(void)
}
#endif
}
redraw_tux_text();
}
@ -23766,7 +23768,7 @@ static void setup(void)
printf("%s\n", tmp_str);
#endif
snprintf(tmp_str, sizeof(tmp_str), "© 20022019 Bill Kendrick et al.");
snprintf(tmp_str, sizeof(tmp_str), "© 20022020 Bill Kendrick et al.");
tmp_surf = render_text(medium_font, tmp_str, black);
dest.x = 10;
dest.y = WINDOW_HEIGHT - img_progress->h - (tmp_surf->h * 2);