From af456e80c8b4aa794eec12c1baaaac4f27109018 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 27 Feb 2014 14:04:50 +0000 Subject: [PATCH] proper sdl fix (nw) --- src/osd/sdl/video.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osd/sdl/video.c b/src/osd/sdl/video.c index 73b200242c0..ba9854f24ef 100644 --- a/src/osd/sdl/video.c +++ b/src/osd/sdl/video.c @@ -121,7 +121,10 @@ int sdlvideo_init(running_machine &machine) if (sdlwindow_init(machine)) return 1; - tc = machine.first_screen()->palette()->entries(); + if (machine.first_screen()!=NULL && machine.first_screen()->palette()!=NULL) + tc = machine.first_screen()->palette()->entries(); + else + tc = 0; // create the windows sdl_options &options = downcast(machine.options());