gsdx-d3d11: Remove exclusive fullscreen code used in legacy gsopen.

This commit is contained in:
lightningterror 2020-05-14 19:40:25 +02:00
parent 37c0067caf
commit 297459c9f6
4 changed files with 0 additions and 34 deletions

View File

@ -320,7 +320,6 @@ void GSdxApp::Init()
m_default_configuration["CaptureFileName"] = "";
m_default_configuration["CaptureVideoCodecDisplayName"] = "";
m_default_configuration["dx_break_on_severity"] = "0";
m_default_configuration["windowed"] = "1";
// D3D Blending option
m_default_configuration["accurate_blending_unit_d3d11"] = "1";
#else

View File

@ -70,7 +70,6 @@ public:
GSVector2i GetInternalResolution();
void SetAspectRatio(int aspect) {m_aspectratio = aspect;}
void SetVSync(int vsync);
virtual void SetExclusive(bool isExcl) {}
virtual bool BeginCapture();
virtual void EndCapture();

View File

@ -463,14 +463,6 @@ bool GSDevice11::Create(const std::shared_ptr<GSWnd> &wnd)
m_dev->CreateBlendState(&blend, &m_date.bs);
// Exclusive/Fullscreen flip, issued for legacy (managed) windows only. GSopen2 style
// emulators will issue the flip themselves later on.
if(m_wnd->IsManaged())
{
SetExclusive(!theApp.GetConfigB("windowed"));
}
GSVector2i tex_font = m_osd.get_texture_font_size();
m_font = std::unique_ptr<GSTexture>(
@ -507,28 +499,6 @@ bool GSDevice11::Reset(int w, int h)
return true;
}
void GSDevice11::SetExclusive(bool isExcl)
{
if(!m_swapchain) return;
// TODO : Support for alternative display modes, by finishing this code below:
// Video mode info should be pulled form config/ini.
/*DXGI_MODE_DESC desc;
memset(&desc, 0, sizeof(desc));
desc.RefreshRate = 0; // must be zero for best results.
m_swapchain->ResizeTarget(&desc);
*/
HRESULT hr = m_swapchain->SetFullscreenState(isExcl, NULL);
if(hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE)
{
fprintf(stderr, "(GSdx10) SetExclusive(%s) failed; request unavailable.", isExcl ? "true" : "false");
}
}
void GSDevice11::SetVSync(int vsync)
{
m_vsync = vsync ? 1 : 0;

View File

@ -495,8 +495,6 @@ public:
void Flip();
void SetVSync(int vsync) final;
void SetExclusive(bool isExcl);
void DrawPrimitive() final;
void DrawIndexedPrimitive();
void DrawIndexedPrimitive(int offset, int count) final;