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/main.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'c/main.c') diff --git a/c/main.c b/c/main.c index 259a526..2676e01 100644 --- a/c/main.c +++ b/c/main.c @@ -266,6 +266,11 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case IDM_TOGGLE: case IDM_FORGET: case IDM_LOOKUP: + case IDM_RATE10: + case IDM_RATE9: + case IDM_RATE8: + case IDM_RATE7: + case IDM_RATE6: case IDM_RATE5: case IDM_RATE4: case IDM_RATE3: @@ -307,6 +312,21 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ElvRedraw(); DlvShowEpisode(lvi.lParam); break; + case IDM_RATE10: + PI(t+1,10) break; + goto r; + case IDM_RATE9: + PI(t+1,9) break; + goto r; + case IDM_RATE8: + PI(t+1,8) break; + goto r; + case IDM_RATE7: + PI(t+1,7) break; + goto r; + case IDM_RATE6: + PI(t+1,6) break; + goto r; case IDM_RATE5: PI(t+1,5) break; goto r; -- cgit v1.2.3