The "Slideshow" begins by showing most recent images

...rather than the oldest.  (i.e., defaults to being scrolled
to the very bottom now, rather than the very top)
This commit is contained in:
Bill Kendrick 2022-05-15 23:39:28 -07:00
parent a8af21e073
commit 27ec817973
2 changed files with 13 additions and 4 deletions

View file

@ -145,6 +145,11 @@ http://www.tuxpaint.org/
dialogs. (For https://sourceforge.net/p/tuxpaint/feature-requests/173/) dialogs. (For https://sourceforge.net/p/tuxpaint/feature-requests/173/)
Bill Kendrick <bill@newbreedsoftware.com> Bill Kendrick <bill@newbreedsoftware.com>
* The "Slideshow" now begins by showing the most recent images
(the bottom of the list of saved images) rather than the oldest
(the top of the list).
Bill Kendrick <bill@newbreedsoftware.com>
* Localization Updates: * Localization Updates:
--------------------- ---------------------
* Albanian translation * Albanian translation

View file

@ -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 - April 29, 2022 June 14, 2002 - May 15, 2022
*/ */
#include "platform.h" #include "platform.h"
@ -16873,8 +16873,13 @@ static int do_slideshow(void)
instructions = textdir(TUX_TIP_SLIDESHOW); instructions = textdir(TUX_TIP_SLIDESHOW);
draw_tux_text(TUX_BORED, instructions, 1); draw_tux_text(TUX_BORED, instructions, 1);
/* NOTE: cur is now set above; if file_id'th file is found, it's /* Default towards the bottom, as it's highly likely the
set to that file's index; otherwise, we default to '0' */ user wants to make a slideshow out of more recent images
(vs. very old ones) */
which = num_files - 1;
cur = ((num_files - 16) / 4) * 4;
if (cur < 0)
cur = 0;
update_list = 1; update_list = 1;
@ -16887,7 +16892,6 @@ static int do_slideshow(void)
do_setcursor(cursor_arrow); do_setcursor(cursor_arrow);
do do
{ {
/* Update screen: */ /* Update screen: */