mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
osdwindow.cpp: Make monitor code a little safer
This commit is contained in:
parent
4eca05fe67
commit
8a3c14c360
@ -62,7 +62,7 @@ std::shared_ptr<osd_monitor_info> osd_window::monitor_from_rect(const osd_rect *
|
||||
std::shared_ptr<osd_monitor_info> monitor;
|
||||
|
||||
// in window mode, find the nearest
|
||||
if (!fullscreen())
|
||||
if (!fullscreen() && m_monitor != nullptr)
|
||||
{
|
||||
if (proposed != nullptr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user