mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
proper sdl fix (nw)
This commit is contained in:
parent
ffb3e2dcc1
commit
af456e80c8
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user