summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/video.c')
-rw-r--r--src/osd/sdl/video.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c
index 9b45ee2aae4..a7374845dc0 100644
--- a/src/osd/sdl/video.c
+++ b/src/osd/sdl/video.c
@@ -113,7 +113,11 @@ bool sdl_osd_interface::video_init()
sdl_window_config conf;
memset(&conf, 0, sizeof(conf));
get_resolution(options().resolution(), options().resolution(index), &conf, TRUE);
- if (sdlwindow_video_window_create(machine(), index, sdl_monitor_info::pick_monitor(options(), index), &conf))
+
+ // create window ...
+ sdl_window_info *win = global_alloc(sdl_window_info(machine(), index, sdl_monitor_info::pick_monitor(options(), index), &conf));
+
+ if (win->window_init())
return false;
}