aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
authorMax Horn2002-05-14 19:38:28 +0000
committerMax Horn2002-05-14 19:38:28 +0000
commitcaf961bfcbf207763c3d69a23d0171784088f1fb (patch)
treee266d64358b402ed85cb018f8509172f0e739fdc /sdl.cpp
parentfe4230bcbf317c2ac039b25c1421b383219e8c9e (diff)
downloadscummvm-rg350-caf961bfcbf207763c3d69a23d0171784088f1fb.tar.gz
scummvm-rg350-caf961bfcbf207763c3d69a23d0171784088f1fb.tar.bz2
scummvm-rg350-caf961bfcbf207763c3d69a23d0171784088f1fb.zip
fixed compilation on more strict compilers
svn-id: r4320
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdl.cpp b/sdl.cpp
index 33fc6e6af5..316fb2af59 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -97,7 +97,7 @@ public:
uint32 property(int param, Property *value);
// Add a callback timer
- void set_timer(int timer, void* callback);
+ void set_timer(int timer, int (*callback)(int));
static OSystem *create(int gfx_mode, bool full_screen);
@@ -229,7 +229,7 @@ OSystem *OSystem_SDL::create(int gfx_mode, bool full_screen) {
return syst;
}
-void OSystem_SDL::set_timer(int timer, void* callback) {
+void OSystem_SDL::set_timer(int timer, int (*callback)(int)) {
SDL_SetTimer(timer, (SDL_TimerCallback) callback);
}
OSystem *OSystem_SDL_create(int gfx_mode, bool full_screen) {