summaryrefslogtreecommitdiff
path: root/plugins/BossKeyPlus/src/BossKeyIdle.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-08-26 13:41:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-08-26 13:41:45 +0300
commitcb2efce1a4fe9c89c5fef63b3aca63f3e63983fc (patch)
treeaee121fae12956a856e6cd72f2a45d3e4757cd1a /plugins/BossKeyPlus/src/BossKeyIdle.cpp
parentc43051a42bfd2457f6cf5fca9698db0d55b73993 (diff)
obsolete services removed from core & replaced with functions
Diffstat (limited to 'plugins/BossKeyPlus/src/BossKeyIdle.cpp')
-rw-r--r--plugins/BossKeyPlus/src/BossKeyIdle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/BossKeyPlus/src/BossKeyIdle.cpp b/plugins/BossKeyPlus/src/BossKeyIdle.cpp
index 20d5163410..be04729ef5 100644
--- a/plugins/BossKeyPlus/src/BossKeyIdle.cpp
+++ b/plugins/BossKeyPlus/src/BossKeyIdle.cpp
@@ -32,9 +32,8 @@ VOID CALLBACK IdleTimer(HWND hwnd, UINT umsg, UINT idEvent, DWORD dwTime);
static bool IsUserIdle()
{
- DWORD dwTick;
if (g_wMaskAdv & OPT_HIDEIFMIRIDLE) {
- CallService(MS_SYSTEM_GETIDLE, 0, (LPARAM)&dwTick);
+ DWORD dwTick = Miranda_GetIdle();
return GetTickCount() - dwTick > (minutes * 60 * 1000);
}