mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[EXPLORER] CTrayClockWnd::CalculateDueTime(): Fix uiDueTime value
when showing seconds.
This commit is contained in:
parent
8cf3cff27c
commit
e45b15aca2
1 changed files with 1 additions and 4 deletions
|
@ -424,12 +424,9 @@ UINT CTrayClockWnd::CalculateDueTime()
|
|||
{
|
||||
UINT uiDueTime;
|
||||
|
||||
/* Calculate the due time */
|
||||
GetLocalTime(&LocalTime);
|
||||
uiDueTime = 1000 - (UINT) LocalTime.wMilliseconds;
|
||||
if (g_TaskbarSettings.bShowSeconds)
|
||||
uiDueTime += (UINT) LocalTime.wSecond * 100;
|
||||
else
|
||||
if (!g_TaskbarSettings.bShowSeconds)
|
||||
uiDueTime += (59 - (UINT) LocalTime.wSecond) * 1000;
|
||||
|
||||
if (uiDueTime < USER_TIMER_MINIMUM || uiDueTime > USER_TIMER_MAXIMUM)
|
||||
|
|
Loading…
Reference in a new issue