summaryrefslogtreecommitdiff
path: root/src/i_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_timer.c')
-rw-r--r--src/i_timer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/i_timer.c b/src/i_timer.c
index 48be83be..d2c455e9 100644
--- a/src/i_timer.c
+++ b/src/i_timer.c
@@ -27,7 +27,7 @@
#include "SDL.h"
#include "i_timer.h"
-#include "doomdef.h"
+#include "doomtype.h"
//
// I_GetTime
@@ -73,6 +73,11 @@ void I_Sleep(int ms)
SDL_Delay(ms);
}
+void I_WaitVBL(int count)
+{
+ I_Sleep((count * 1000) / 70);
+}
+
void I_InitTimer(void)
{