Skip to content

Commit

Permalink
- Fix macOS compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Nov 12, 2017
1 parent 307d893 commit 7d63c33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
12 changes: 0 additions & 12 deletions src/posix/cocoa/i_system.mm
Expand Up @@ -73,18 +73,6 @@ void I_Tactile(int /*on*/, int /*off*/, int /*total*/)
}


void I_WaitVBL(const int count)
{
// I_WaitVBL is never used to actually synchronize to the
// vertical blank. Instead, it's used for delay purposes.
struct timespec delay, rem;
delay.tv_sec = count / 70;
/* Avoid overflow. Microsec res should be good enough. */
delay.tv_nsec = (count%70)*1000000/70 * 1000;
while(nanosleep(&delay, &rem) == -1 && errno == EINTR)
delay = rem;
}


//
// SetLanguageIDs
Expand Down
16 changes: 0 additions & 16 deletions src/posix/i_system.h
Expand Up @@ -57,22 +57,6 @@ extern void SetLanguageIDs ();
// Called by DoomMain.
void I_Init (void);

// Called by D_DoomLoop,
// returns current time in tics.
extern int (*I_GetTime) (bool saveMS);

// like I_GetTime, except it waits for a new tic before returning
extern int (*I_WaitForTic) (int);

// Freezes tic counting temporarily. While frozen, calls to I_GetTime()
// will always return the same value. This does not affect I_MSTime().
// You must also not call I_WaitForTic() while freezing time, since the
// tic will never arrive (unless it's the current one).
extern void (*I_FreezeTime) (bool frozen);

double I_GetTimeFrac (uint32_t *ms);
void I_SetFrameTime();

// Return a seed value for the RNG.
unsigned int I_MakeRNGSeed();

Expand Down

0 comments on commit 7d63c33

Please sign in to comment.