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:
Doug Torrance 2018-06-22 16:21:00 -04:00 committed by Carlos R. Mafra
parent e94de4a618
commit fd74076a9a

View file

@ -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;