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
1 changed files with 2 additions and 2 deletions
|
@ -680,8 +680,8 @@ int DrawChars(char *title, int tpos, int pos)
|
||||||
{
|
{
|
||||||
int len = mbtowc(&wc, title, MB_CUR_MAX);
|
int len = mbtowc(&wc, title, MB_CUR_MAX);
|
||||||
title += len;
|
title += len;
|
||||||
if(pos > tpos)
|
if(pos >= tpos)
|
||||||
DrawChar(wc, (pos - tpos)*6 + 1, 26);
|
DrawChar(wc, (pos - tpos)*6 + 7, 26);
|
||||||
++pos;
|
++pos;
|
||||||
}
|
}
|
||||||
return pos;
|
return pos;
|
||||||
|
|
Loading…
Reference in a new issue