wmusic: Fix display bug; print entire title for short titles.
Previously, if a title was too short to require scrolling, the first character was omitted.
This commit is contained in:
parent
e94de4a618
commit
fd74076a9a
|
@ -680,8 +680,8 @@ int DrawChars(char *title, int tpos, int pos)
|
|||
{
|
||||
int len = mbtowc(&wc, title, MB_CUR_MAX);
|
||||
title += len;
|
||||
if(pos > tpos)
|
||||
DrawChar(wc, (pos - tpos)*6 + 1, 26);
|
||||
if(pos >= tpos)
|
||||
DrawChar(wc, (pos - tpos)*6 + 7, 26);
|
||||
++pos;
|
||||
}
|
||||
return pos;
|
||||
|
|
Loading…
Reference in a new issue