forked from len0rd/rockbox
Change the cuesheet fix from r30359 to have a minor binsize increase on SH1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30362 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
89f704bfb1
commit
ae2233b338
1 changed files with 4 additions and 1 deletions
|
|
@ -362,9 +362,12 @@ void cue_draw_markers(struct screen *screen, struct cuesheet *cue,
|
|||
int x, int y, int w, int h)
|
||||
{
|
||||
int i,xi;
|
||||
unsigned long tracklen_seconds = tracklen/1000; /* duration in seconds */
|
||||
|
||||
for (i=1; i < cue->track_count; i++)
|
||||
{
|
||||
xi = x + (w * (long long)cue->tracks[i].offset)/tracklen;
|
||||
/* Convert seconds prior to multiplication to avoid overflow. */
|
||||
xi = x + (w * (cue->tracks[i].offset/1000)) / tracklen_seconds;
|
||||
draw_veritcal_line_mark(screen, xi, y, h);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue