diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-25 13:46:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-25 13:46:08 +0200 |
commit | 45133f2f99dc2e6f0e786909a68f1cfd93b7f01d (patch) | |
tree | ebe3671b4427d4d82703458215bf762439b4ea1e /c/episodelistview.c | |
parent | 9bc40139e57875a7e2d6c4c6a5e4e0e9a73f7539 (diff) | |
download | EpisodeBrowser-45133f2f99dc2e6f0e786909a68f1cfd93b7f01d.tar.gz |
Rate from 1 to 10.
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); |