aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-25 15:58:00 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-25 15:58:00 +0100
commit196aeb5a981e184c9eb48a8215639252812f2608 (patch)
tree4e65e640223307b7714fc6355b9dde0252a248a2 /c/episodelistview.c
parent74a6d0f006b9e0ca6167a5a021e0789aa8ac2a07 (diff)
downloadEpisodeBrowser-196aeb5a981e184c9eb48a8215639252812f2608.tar.gz
Small improvements.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r--c/episodelistview.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c
index 040383a..c2d937b 100644
--- a/c/episodelistview.c
+++ b/c/episodelistview.c
@@ -10,7 +10,6 @@ extern HFONT HfBold;
extern HWND HWnd;
HWND HElv;
LPLVITEM LpLviElvSelection;
-WNDPROC ElvPrevProc;
HWND
ElvCreate()
@@ -63,8 +62,7 @@ ElvHandleNotify(LPARAM lParam)
break;
case CDDS_ITEMPREPAINT:
if (!Watched(lpLvCd->nmcd.lItemlParam)) {
- SelectObject(lpLvCd->nmcd.hdc,
- HfBold);
+ SelectObject(lpLvCd->nmcd.hdc, HfBold);
return CDRF_NEWFONT;
}
break;
@@ -213,10 +211,9 @@ e: Fd(f2);
/* Reset selection and scrolling position. */
ElvSetTop(iTop);
- if (LpLviElvSelection) {
+ if (LpLviElvSelection)
ListView_SetItemState(HElv, LpLviElvSelection->iItem,
LVIS_SELECTED, LVIS_SELECTED);
- }
SendMessage(HElv, WM_SETREDRAW, TRUE, 0);
ElvRedraw();