Skip to content

Commit

Permalink
VideoConfig: Remove fullscreen flags.
Browse files Browse the repository at this point in the history
These weren't actually settings, they were used as a bad way to communicate with the GPU thread.
  • Loading branch information
CrossVR committed Nov 11, 2016
1 parent c21efa0 commit 0a194f8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions Source/Core/Core/Analytics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ void DolphinAnalytics::MakePerGameBuilder()
builder.AddData("cfg-gfx-realxfb", g_Config.RealXFBEnabled());
builder.AddData("cfg-gfx-virtualxfb", g_Config.VirtualXFBEnabled());
builder.AddData("cfg-gfx-vsync", g_Config.bVSync);
builder.AddData("cfg-gfx-fullscreen", g_Config.bFullscreen);
builder.AddData("cfg-gfx-exclusive-mode", g_Config.bExclusiveMode);
builder.AddData("cfg-gfx-aspect-ratio", g_Config.iAspectRatio);
builder.AddData("cfg-gfx-efb-access", g_Config.bEFBAccessEnable);
builder.AddData("cfg-gfx-efb-scale", g_Config.iEFBScale);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/D3D/D3DBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ HRESULT Create(HWND wnd)
swap_chain_desc.OutputWindow = wnd;
swap_chain_desc.SampleDesc.Count = 1;
swap_chain_desc.SampleDesc.Quality = 0;
swap_chain_desc.Windowed = !g_Config.bFullscreen;
swap_chain_desc.Windowed = TRUE;

DXGI_OUTPUT_DESC out_desc = {};
output->GetDesc(&out_desc);
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/VideoBackends/D3D12/Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,6 @@ void Renderer::SwapImpl(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height
SetWindowSize(fb_stride, fb_height);

const bool window_resized = CheckForResize();
const bool fullscreen = g_ActiveConfig.bFullscreen && !g_ActiveConfig.bBorderlessFullscreen &&
!SConfig::GetInstance().bRenderToMain;

bool xfb_changed = s_last_xfb_mode != g_ActiveConfig.bUseRealXFB;

Expand Down
4 changes: 0 additions & 4 deletions Source/Core/VideoCommon/VideoConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ VideoConfig::VideoConfig()
{
bRunning = false;

// Exclusive fullscreen flags
bFullscreen = false;
bExclusiveMode = false;

// Needed for the first frame, I think
fAspectRatioHackW = 1;
fAspectRatioHackH = 1;
Expand Down
2 changes: 0 additions & 2 deletions Source/Core/VideoCommon/VideoConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ struct VideoConfig final

// General
bool bVSync;
bool bFullscreen;
bool bExclusiveMode;
bool bRunning;
bool bWidescreenHack;
int iAspectRatio;
Expand Down

0 comments on commit 0a194f8

Please sign in to comment.