diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
commit | c3a168743616db6606702db5ad0fecab4dfee3da (patch) | |
tree | 523ef1399093917f3565d769826ceecb7eb2ef6c /plugins/Watrack/status | |
parent | 90ad600cb38a04c9272a3599c72d6559c822b155 (diff) |
Miranda API update
Watrack refactoring, API changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/status')
-rw-r--r-- | plugins/Watrack/status/i_hotkey.inc | 2 | ||||
-rw-r--r-- | plugins/Watrack/status/i_st_vars.inc | 1 | ||||
-rw-r--r-- | plugins/Watrack/status/i_status.inc | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Watrack/status/i_hotkey.inc b/plugins/Watrack/status/i_hotkey.inc index 3ad23ae656..115be86655 100644 --- a/plugins/Watrack/status/i_hotkey.inc +++ b/plugins/Watrack/status/i_hotkey.inc @@ -12,7 +12,7 @@ begin result:=0;
if DisablePlugin=dsPermanent then
exit;
- if Loword(LastStatus)<>WAT_PLS_NORMAL then
+ if LastStatus in [WAT_PLS_NOTFOUND,WAT_PLS_STOPPED] then
exit;
// i:=CallService(MS_WAT_GETMUSICINFO,0,0);
if UseMessages=BST_CHECKED then
diff --git a/plugins/Watrack/status/i_st_vars.inc b/plugins/Watrack/status/i_st_vars.inc index 4db2bbb44c..e1696c3621 100644 --- a/plugins/Watrack/status/i_st_vars.inc +++ b/plugins/Watrack/status/i_st_vars.inc @@ -18,6 +18,7 @@ var XStatusSet :cardinal;
ClearXStat :cardinal;
hINS :THANDLE;
+// hLTo :THANDLE;
plStatusHook :THANDLE;
const
diff --git a/plugins/Watrack/status/i_status.inc b/plugins/Watrack/status/i_status.inc index a7e3d2e5ef..0392a797ad 100644 --- a/plugins/Watrack/status/i_status.inc +++ b/plugins/Watrack/status/i_status.inc @@ -63,7 +63,7 @@ begin WAT_EVENT_PLAYERSTATUS: begin
LastStatus:=lParam;
- if (loword(lParam)=WAT_PLS_NORMAL) then
+ if not (lParam in [WAT_PLS_NOTFOUND,WAT_PLS_STOPPED]) then
exit;
doClear:=true;
end;
|