aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-17 03:11:42 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-17 03:11:42 +0100
commit447648c9db10167e5da4f0b431d7cfb878c5f807 (patch)
tree7d8b810b2b39dcfd377cd14f77deec19b3968eba /c/main.c
parentb1a9967ea3b8dd6490ee24cb6ff4e809aa51eb3c (diff)
downloadEpisodeBrowser-447648c9db10167e5da4f0b431d7cfb878c5f807.tar.gz
Even more cleanup.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/c/main.c b/c/main.c
index 82f30a6..c6364e8 100644
--- a/c/main.c
+++ b/c/main.c
@@ -128,16 +128,14 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
fid_t f;
HWND hElv;
- int iEpisode;
term_t t;
- extern int IElvSelectedItem;
+ extern LPLVITEM LpLviElvSelection;
hElv = GetDlgItem(hWnd, IDC_EPISODELISTVIEW);
- iEpisode = ElvItemEpisode(IElvSelectedItem);
F(f);
t = T(1);
- PI(t,iEpisode) break;
+ PI(t,LpLviElvSelection->lParam) break;
switch (LOWORD(wParam)) {
case ID_WATCH:
@@ -154,9 +152,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
case ID_LOOKUP:
P("episode_data","retract_episode",1,t);
- ElvUpdateName(IElvSelectedItem, iEpisode);
+ ElvUpdateName(LpLviElvSelection);
ElvRedraw();
- DlvShowEpisode(iEpisode);
+ DlvShowEpisode(LpLviElvSelection->lParam);
break;
}
@@ -246,7 +244,6 @@ UpdateLayout(HWND hWnd)
HWND hElv, hDlv;
int cxColumn, cyDlv;
RECT rc;
- extern int IElvSelectedItem;
static int cxVScroll = 0;
if (cxVScroll == 0)