aboutsummaryrefslogtreecommitdiff
path: root/c/main.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-03-30 20:15:52 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-03-30 20:15:52 +0200
commitc9b8d278883a90f534f30f0830bb003460310823 (patch)
tree009344dc7955e0c971d1c5bac102f7805ea363aa /c/main.c
parentd1bfa9c377b63ee051e668e8bb60f6051c65787d (diff)
downloadEpisodeBrowser-c9b8d278883a90f534f30f0830bb003460310823.tar.gz
Disregard foreign frames.
I don't think they're necessary.
Diffstat (limited to 'c/main.c')
-rw-r--r--c/main.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/c/main.c b/c/main.c
index 8f8b0e5..90ae714 100644
--- a/c/main.c
+++ b/c/main.c
@@ -112,7 +112,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
case WM_ACTIVATE:
switch (wParam) {
- fid_t f;
term_t t;
extern HWND HElv;
case WA_INACTIVE:
@@ -121,11 +120,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetFocus(HElv);
/* FALLTHROUGH */
case WA_CLICKACTIVE:
- F(f);
t = T(0);
P("track_episodes","update_tracked_episodes",0,t);
ElvRedraw();
- Fd(f);
}
break;
case WM_NOTIFY:
@@ -155,11 +152,9 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case ID_FORGET:
case ID_LOOKUP:
{
- fid_t f;
term_t t;
extern LPLVITEM LpLviElvSelection;
- F(f);
t = T(1);
PI(t,LpLviElvSelection->lParam) break;
@@ -183,8 +178,6 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
DlvShowEpisode(LpLviElvSelection->lParam);
break;
}
-
- Fd(f);
break;
}
}
@@ -223,18 +216,11 @@ AboutDlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int
Attach()
{
- fid_t f;
term_t t;
-
- F(f);
t = T(0);
- P("track_episodes","attach",0,t) goto f;
- P("episode_data","attach",0,t) goto f;
-
- Fd(f);
+ P("track_episodes","attach",0,t) return 0;
+ P("episode_data","attach",0,t) return 0;
return 1;
-f: Fd(f);
- return 0;
}
void