~ubuntu-branches/ubuntu/vivid/libsdl2/vivid

« back to all changes in this revision

Viewing changes to src/timer/windows/SDL_systimer.c

  • Committer: Package Import Robot
  • Author(s): Manuel A. Fernandez Montecelo, Felix Geyer
  • Date: 2013-12-28 12:31:19 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20131228123119-e0k27gckmnzskfgb
Tags: 2.0.1+dfsg1-1
* New upstream release (Closes: #728974)
  - Remove patch applied upstream:
    bug-723797-false_positives_in_mouse_wheel_code.patch
* Bump Standards-Version to 3.9.5, no changes needed.

[ Felix Geyer ]
* Import upstream gpg key for uscan to verify the orig tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
/* The first (low-resolution) ticks value of the application */
33
33
static DWORD start;
 
34
static BOOL ticks_started = FALSE; 
34
35
 
35
36
#ifndef USE_GETTICKCOUNT
36
37
/* Store if a high-resolution performance counter exists on the system */
76
77
}
77
78
 
78
79
void
79
 
SDL_StartTicks(void)
 
80
SDL_InitTicks(void)
80
81
{
 
82
    if (ticks_started) {
 
83
        return;
 
84
    }
 
85
    ticks_started = TRUE;
 
86
 
81
87
    /* Set first ticks value */
82
88
#ifdef USE_GETTICKCOUNT
83
89
    start = GetTickCount();
107
113
    LARGE_INTEGER hires_now;
108
114
#endif
109
115
 
 
116
    if (!ticks_started) {
 
117
        SDL_InitTicks();
 
118
    }
 
119
 
110
120
#ifdef USE_GETTICKCOUNT
111
121
    now = GetTickCount();
112
122
#else