mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
Revert partial fix for border style issue (nw)
- reverted from commitf911dfc
anda6ccd3b
, because it wasted up to 10 percent of the performance in fullscreen mode (actual fix for MT-06209 is not harmed)
This commit is contained in:
parent
80a70226f9
commit
e208f1d540
@ -578,7 +578,7 @@ int renderer_d3d9::initialize()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the device immediately for the full screen case (defer for window mode in update_window_size())
|
// create the device immediately for the full screen case (defer for window mode)
|
||||||
auto win = assert_window();
|
auto win = assert_window();
|
||||||
if (win->fullscreen() && device_create(win->main_window()->platform_window<HWND>()))
|
if (win->fullscreen() && device_create(win->main_window()->platform_window<HWND>()))
|
||||||
{
|
{
|
||||||
@ -841,7 +841,7 @@ try_again:
|
|||||||
m_presentation.MultiSampleType = D3DMULTISAMPLE_NONE;
|
m_presentation.MultiSampleType = D3DMULTISAMPLE_NONE;
|
||||||
m_presentation.SwapEffect = D3DSWAPEFFECT_DISCARD;
|
m_presentation.SwapEffect = D3DSWAPEFFECT_DISCARD;
|
||||||
m_presentation.hDeviceWindow = win->platform_window<HWND>();
|
m_presentation.hDeviceWindow = win->platform_window<HWND>();
|
||||||
m_presentation.Windowed = !win->fullscreen() || !video_config.switchres || win->win_has_menu();
|
m_presentation.Windowed = !win->fullscreen() || win->win_has_menu();
|
||||||
m_presentation.EnableAutoDepthStencil = FALSE;
|
m_presentation.EnableAutoDepthStencil = FALSE;
|
||||||
m_presentation.AutoDepthStencilFormat = D3DFMT_D16;
|
m_presentation.AutoDepthStencilFormat = D3DFMT_D16;
|
||||||
m_presentation.Flags = 0;
|
m_presentation.Flags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user