From 45133f2f99dc2e6f0e786909a68f1cfd93b7f01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 25 Apr 2022 13:46:08 +0200 Subject: Rate from 1 to 10. --- c/episodelistview.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'c/episodelistview.c') 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); -- cgit v1.2.3