aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/time.cpp
diff options
context:
space:
mode:
authorMarcus Comstedt2006-10-22 18:35:49 +0000
committerMarcus Comstedt2006-10-22 18:35:49 +0000
commitdde7244f2da4bca4da095f22be5fe2840257b859 (patch)
treeb6bafb4261a52d2e0a848244284d0c9662c7189c /backends/platform/dc/time.cpp
parentfbb5a2d7730ff34bd558b8e4a8aa0b68d41318b5 (diff)
downloadscummvm-rg350-dde7244f2da4bca4da095f22be5fe2840257b859.tar.gz
scummvm-rg350-dde7244f2da4bca4da095f22be5fe2840257b859.tar.bz2
scummvm-rg350-dde7244f2da4bca4da095f22be5fe2840257b859.zip
Removed timerproc and soundproc.
svn-id: r24455
Diffstat (limited to 'backends/platform/dc/time.cpp')
-rw-r--r--backends/platform/dc/time.cpp47
1 files changed, 4 insertions, 43 deletions
diff --git a/backends/platform/dc/time.cpp b/backends/platform/dc/time.cpp
index a4bbfb8be6..1912bed773 100644
--- a/backends/platform/dc/time.cpp
+++ b/backends/platform/dc/time.cpp
@@ -49,49 +49,10 @@ void OSystem_Dreamcast::delayMillis(uint msecs)
getMillis();
unsigned int t, start = Timer();
int time = (((unsigned int)msecs)*100000U)>>11;
- while(((int)((t = Timer())-start))<time)
+ while(((int)((t = Timer())-start))<time) {
+ if(_timer != NULL)
+ _timer->handler();
checkSound();
- getMillis();
-}
-
-void OSystem_Dreamcast::setTimerCallback(TimerProc callback, int timer)
-{
- if (callback != NULL) {
- _timer_duration = timer;
- _timer_next_expiry = Timer() + USEC_TO_TIMER(1000*timer);
- _timer_callback = callback;
- _timer_active = true;
- } else {
- _timer_active = false;
}
+ getMillis();
}
-
-
-/*
-void waitForTimer(Scumm *s, int time)
-{
- if(time<0)
- return;
- unsigned int start = Timer();
- unsigned int devpoll = start+USEC_TO_TIMER(25000);
- unsigned int t;
- int oldmousex = s->mouse.x, oldmousey = s->mouse.y;
- time = (((unsigned int)time)*100000U)>>11;
- int mask = getimask();
- while(((int)((t = Timer())-start))<time)
- if(((int)(t-devpoll))>0) {
- setimask(15);
- checkSound();
- handleInput(locked_get_pads(), s->mouse.x, s->mouse.y,
- s->_leftBtnPressed, s->_rightBtnPressed, s->_keyPressed);
- setimask(mask);
- devpoll += USEC_TO_TIMER(17000);
- if(s->mouse.x != oldmousex || s->mouse.y != oldmousey) {
- extern void updateScreen(Scumm *s);
- updateScreen(s);
- oldmousex = s->mouse.x;
- oldmousey = s->mouse.y;
- }
- }
-}
-*/