mirror of
https://github.com/holub/mame
synced 2025-06-08 05:44:09 +03:00
Fixed MT 06209 (part 2)
- the D3D device is now always created with presentation parameters where Windowed = true, which actually does not make sense
This commit is contained in:
parent
167f345bab
commit
f911dfcc39
@ -578,7 +578,7 @@ int renderer_d3d9::initialize()
|
||||
return false;
|
||||
}
|
||||
|
||||
// create the device immediately for the full screen case (defer for window mode)
|
||||
// create the device immediately for the full screen case (defer for window mode in update_window_size())
|
||||
auto win = assert_window();
|
||||
if (win->fullscreen() && device_create(win->main_window()->platform_window<HWND>()))
|
||||
{
|
||||
@ -838,7 +838,7 @@ try_again:
|
||||
m_presentation.MultiSampleType = D3DMULTISAMPLE_NONE;
|
||||
m_presentation.SwapEffect = D3DSWAPEFFECT_DISCARD;
|
||||
m_presentation.hDeviceWindow = win->platform_window<HWND>();
|
||||
m_presentation.Windowed = !win->fullscreen() || win->win_has_menu();
|
||||
m_presentation.Windowed = true; // !win->fullscreen() || win->win_has_menu();
|
||||
m_presentation.EnableAutoDepthStencil = FALSE;
|
||||
m_presentation.AutoDepthStencilFormat = D3DFMT_D16;
|
||||
m_presentation.Flags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user