aboutsummaryrefslogtreecommitdiff
path: root/saga/systimer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/systimer.cpp')
-rw-r--r--saga/systimer.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/saga/systimer.cpp b/saga/systimer.cpp
index dd76f43849..0b0a86cdb3 100644
--- a/saga/systimer.cpp
+++ b/saga/systimer.cpp
@@ -31,7 +31,31 @@
namespace Saga {
-R_SYSTIMER_DATA R_TimerData;
+struct R_SYSTIMER {
+
+ int t_running;
+
+ unsigned long t_interval;
+ void *t_param;
+
+ R_SYSTIMER_CALLBACK t_callback_f;
+ SDL_TimerID t_sdl_timerid;
+};
+
+struct R_SYSTIMER_DATA {
+
+ int initialized;
+
+ Uint32 t_start_ticks;
+
+ Uint32 t_current_ticks;
+ Uint32 t_previous_ticks;
+
+};
+
+static R_SYSTIMER_DATA R_TimerData;
+
+static Uint32 SYSTIMER_Callback(Uint32 interval, void *param);
int SYSTIMER_InitMSCounter(void)
{