summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/window.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-04-27 20:34:45 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-04-27 20:34:45 +0000
commitaf94c692bb616def82ec38e717dea5e507d310fe (patch)
tree62402705206111cd10ec15d585de338f2881ea14 /src/osd/sdl/window.c
parent9092f1596454dd7b76e954038f7dd25f3305e345 (diff)
Switch to using delegates for some callbacks:
- non-device timer callbacks - machine state changing callbacks - configuration callbacks - per-screen VBLANK callbacks - DRC backend callbacks For the timer case only, I added wrappers for the old-style functions. Over time, drivers should switch to device timers instead, reducing the number of timers that are directly allocated through the scheduler.
Diffstat (limited to 'src/osd/sdl/window.c')
-rw-r--r--src/osd/sdl/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/sdl/window.c b/src/osd/sdl/window.c
index ae9d6f44f97..5753f99a4ae 100644
--- a/src/osd/sdl/window.c
+++ b/src/osd/sdl/window.c
@@ -213,7 +213,7 @@ int sdlwindow_init(running_machine &machine)
main_threadid = SDL_ThreadID();
// ensure we get called on the way out
- machine.add_notifier(MACHINE_NOTIFY_EXIT, sdlwindow_exit);
+ machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(sdlwindow_exit), &machine));
// if multithreading, create a thread to run the windows
if (multithreading_enabled)