diff options
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 843ef78..601f2b7 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -27,7 +27,7 @@ ElvCreate() lvc.iSubItem = 1; lvc.pszText = TEXT("/"); - lvc.cx = Dpi(20); + lvc.cx = Dpi(30); ListView_InsertColumn(HElv, 1, &lvc); lvc.iSubItem = 2; @@ -375,8 +375,9 @@ ElvUpdateItem(LPLVITEM lpLvi) { char *szName; int iRating; - TCHAR *tszName, tszRating[3]; + TCHAR *tszName; term_t t, t2; + static TCHAR tszRating[3]; t = T(2); tszName = NULL; @@ -397,7 +398,8 @@ r: t2 = T(2); goto f; } GI(t2+1,&iRating) goto f; - _itot(iRating % 11, tszRating, sizeof(tszRating)); + + _stprintf_s(tszRating, sizeof(tszRating), TEXT("%d"), iRating); ListView_SetItemText(HElv, lpLvi->iItem, 1, tszRating); f: if (tszName) free(tszName); |