mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
Let's try to solve the quit-on-minimize problem (nw)
This commit is contained in:
parent
dbcc0a5cc4
commit
4c0eb7f85f
@ -52,6 +52,8 @@ render_primitive_list *renderer_gdi::get_primitives()
|
||||
|
||||
RECT client;
|
||||
GetClientRect(std::static_pointer_cast<win_window_info>(win)->platform_window(), &client);
|
||||
if ((rect_width(&client) == 0) || (rect_height(&client) == 0))
|
||||
return nullptr;
|
||||
win->target()->set_bounds(rect_width(&client), rect_height(&client), win->pixel_aspect());
|
||||
return &win->target()->get_primitives();
|
||||
}
|
||||
|
@ -34,6 +34,8 @@ render_primitive_list *renderer_none::get_primitives()
|
||||
client.top = bounds.Top;
|
||||
client.bottom = bounds.Bottom;
|
||||
#endif
|
||||
if ((rect_width(&client) == 0) || (rect_height(&client) == 0))
|
||||
return nullptr;
|
||||
win->target()->set_bounds(rect_width(&client), rect_height(&client), win->pixel_aspect());
|
||||
return &win->target()->get_primitives();
|
||||
}
|
||||
|
@ -151,6 +151,8 @@ public:
|
||||
m_blit_dim = nd;
|
||||
notify_changed();
|
||||
}
|
||||
if ((m_blit_dim.width() == 0) || (m_blit_dim.height() == 0))
|
||||
return nullptr;
|
||||
win->target()->set_bounds(m_blit_dim.width(), m_blit_dim.height(), win->pixel_aspect());
|
||||
return &win->target()->get_primitives();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user