- removed redundant POSIX version of I_WaitVBL

This commit is contained in:
Christoph Oelckers 2017-11-12 12:12:51 +01:00
parent e50b012c87
commit 0db0f2f7b9
1 changed files with 0 additions and 12 deletions

View File

@ -105,18 +105,6 @@ void I_EndRead(void)
}
void I_WaitVBL (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
//