Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bugs
  • Category User Interface
  • Assigned To No-one
  • Operating System Sansa Clip Zip
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by bahus - 2022-06-12
Last edited by speachy - 2022-10-31

FS#13354 - WPS wrong formatting logic for strings with combination of left center and right aligning

Time Elapsed/Remaining is incorrectly displayed for long files (audiobooks):
1) Missing seconds part of remaining time and wrong centering:
Instead of “48:36 2/14 12:07:15” it shows “48:36 2/14 12:07” See attached MissingSecondsRemainingWrongCentering.bmp
2) Centered text is duplicated
See attached DuplicatedAndWrongRemaining.bmp
It should looks something like “11:38:29 2/14 1:12:10”

Seems text is properly displayed only when left and right part (Elapsed and Remaining time) need the same amount of space. So basically if both elapsed and remaining time can be expressed as h:mm:ss - everything is OK. See attached Ok.bmp. But if elapsed mm:ss and remaining h:mm:ss or vice versa - formatting is wrong.

I’m using a slightly modified standard Cabbie2 WPS (attached) and use the following format string for Time Elapsed/Remaining: %al%pc%ac%pp/%pe%ar%pr

https://www.rockbox.org/tracker/task/12980 might be related

Closed by  speachy
2022-10-31 07:12
Reason for closing:  Fixed
bahus commented on 2022-06-14 15:50

Formatting looks OK in 3.13 and broken in 3.14

bahus commented on 2022-06-14 16:32

So it seems the culprit in some of the following commits
https://github.com/Rockbox/rockbox/commits/v3.14/apps/gui/skin_engine

First page covers most of 3.14 commits

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing