mirror of
https://github.com/holub/mame
synced 2025-05-14 18:08:13 +03:00
Fix bug that mistook a non-NULL token to mean that a device was started.
Fixes -video ddraw issue.
This commit is contained in:
parent
9dd322ab7f
commit
392f02e3ff
@ -1478,7 +1478,7 @@ void render_target_get_minimum_size(render_target *target, INT32 *minwidth, INT3
|
||||
/* we may be called very early, before machine->visible_area is initialized; handle that case */
|
||||
if (scrconfig->type == SCREEN_TYPE_VECTOR)
|
||||
visarea = &vectorvis;
|
||||
else if (screendev != NULL && screendev->token != NULL)
|
||||
else if (screendev != NULL && screendev->started)
|
||||
visarea = video_screen_get_visible_area(screendev);
|
||||
else
|
||||
visarea = &scrconfig->visarea;
|
||||
|
Loading…
Reference in New Issue
Block a user