Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#5527 - Advance/reteat in lists by percentage

Attached to Project: Rockbox
Opened by Thomas Paul Diffenbach (tpdiffenbach) - Saturday, 10 June 2006, 23:27 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 22 July 2007, 10:52 GMT+2
Task Type Patches
Category User Interface
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

Allow code to advance or regress in list by some percentage of the size of the list:

/*
+ * Advance/retreat in the list by n percent of the total list elements,
+ * by at least one line if percent_lines != 0
+ * - gui_list : the list structure
+ * - percent_lines : the percent of the total number of lines to try to move the cursor
+ * postive adavnces forward, negative retreats back, 0 has no effect
+ */

NOTE: this patch just adds these functions; it does not call them, so installing this patch adds no user-apparent functionality
   list.relative.select.patch (3 KiB)
 apps/gui/list.c |   31 +++++++++++++++++++++++++++++++
 apps/gui/list.h |   11 +++++++++++
 2 files changed, 42 insertions(+)

This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Sunday, 22 July 2007, 10:52 GMT+2
Reason for closing:  Out of Date

Loading...