mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-23 06:43:07 +00:00
dix: dispatch: declare variables where needed in UpdateCurrentTime[If]()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
a588821b78
commit
4a4d4e0fc8
1 changed files with 8 additions and 8 deletions
|
|
@ -212,13 +212,13 @@ GetCurrentClient(void)
|
|||
void
|
||||
UpdateCurrentTime(void)
|
||||
{
|
||||
TimeStamp systime;
|
||||
|
||||
/* To avoid time running backwards, we must call GetTimeInMillis before
|
||||
* calling ProcessInputEvents.
|
||||
*/
|
||||
systime.months = currentTime.months;
|
||||
systime.milliseconds = GetTimeInMillis();
|
||||
TimeStamp systime = {
|
||||
.months = currentTime.months,
|
||||
.milliseconds = GetTimeInMillis(),
|
||||
};
|
||||
if (systime.milliseconds < currentTime.milliseconds)
|
||||
systime.months++;
|
||||
if (InputCheckPending())
|
||||
|
|
@ -231,10 +231,10 @@ UpdateCurrentTime(void)
|
|||
void
|
||||
UpdateCurrentTimeIf(void)
|
||||
{
|
||||
TimeStamp systime;
|
||||
|
||||
systime.months = currentTime.months;
|
||||
systime.milliseconds = GetTimeInMillis();
|
||||
TimeStamp systime = {
|
||||
.months = currentTime.months,
|
||||
.milliseconds = GetTimeInMillis(),
|
||||
};
|
||||
if (systime.milliseconds < currentTime.milliseconds)
|
||||
systime.months++;
|
||||
if (CompareTimeStamps(systime, currentTime) == LATER)
|
||||
|
|
|
|||
Loading…
Reference in a new issue