proper sdl fix (nw)

This commit is contained in:
Miodrag Milanovic 2014-02-27 14:04:50 +00:00
parent ffb3e2dcc1
commit af456e80c8

View File

@ -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<sdl_options &>(machine.options());