mirror of https://github.com/PCSX2/pcsx2.git
GSdx:
Auto interlace mode, no more flickering! :p git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5178 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
89ec3cb4e9
commit
5dee597d9b
|
@ -248,12 +248,20 @@ bool GSRenderer::Merge(int field)
|
|||
m_dev->Merge(tex, src, dst, fs, slbg, mmod, c);
|
||||
|
||||
if(m_regs->SMODE2.INT && m_interlace > 0)
|
||||
{
|
||||
if (m_interlace == 7 && m_regs->SMODE2.FFMD == 1) // Auto interlace enabled / Odd frame interlace setting
|
||||
{
|
||||
int field2 = 0;
|
||||
int mode = 2;
|
||||
m_dev->Interlace(ds, field ^ field2, mode, tex[1] ? tex[1]->GetScale().y : tex[0]->GetScale().y);
|
||||
}
|
||||
else
|
||||
{
|
||||
int field2 = 1 - ((m_interlace - 1) & 1);
|
||||
int mode = (m_interlace - 1) >> 1;
|
||||
|
||||
m_dev->Interlace(ds, field ^ field2, mode, tex[1] ? tex[1]->GetScale().y : tex[0]->GetScale().y);
|
||||
}
|
||||
}
|
||||
|
||||
if(m_shadeboost)
|
||||
{
|
||||
|
@ -515,7 +523,7 @@ void GSRenderer::KeyEvent(GSKeyEventData* e)
|
|||
switch(e->key)
|
||||
{
|
||||
case VK_F5:
|
||||
m_interlace = (m_interlace + 7 + step) % 7;
|
||||
m_interlace = (m_interlace + 8 + step) % 8;
|
||||
printf("GSdx: Set deinterlace mode to %d (%s).\n", (int)m_interlace, theApp.m_gs_interlace.at(m_interlace).name.c_str());
|
||||
return;
|
||||
case VK_F6:
|
||||
|
|
|
@ -94,7 +94,7 @@ void GSSettingsDlg::OnInit()
|
|||
}
|
||||
|
||||
ComboBoxInit(IDC_RENDERER, renderers, theApp.GetConfig("Renderer", 0));
|
||||
ComboBoxInit(IDC_INTERLACE, theApp.m_gs_interlace, theApp.GetConfig("Interlace", 0));
|
||||
ComboBoxInit(IDC_INTERLACE, theApp.m_gs_interlace, theApp.GetConfig("Interlace", 7)); // 7 = "auto", detects interlace based on SMODE2 register
|
||||
ComboBoxInit(IDC_ASPECTRATIO, theApp.m_gs_aspectratio, theApp.GetConfig("AspectRatio", 1));
|
||||
ComboBoxInit(IDC_UPSCALE_MULTIPLIER, theApp.m_gs_upscale_multiplier, theApp.GetConfig("upscale_multiplier", 1));
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ GSdxApp::GSdxApp()
|
|||
m_gs_interlace.push_back(GSSetting(4, "Bob bff", "use blend if shaking"));
|
||||
m_gs_interlace.push_back(GSSetting(5, "Blend tff", "slight blur, 1/2 fps"));
|
||||
m_gs_interlace.push_back(GSSetting(6, "Blend bff", "slight blur, 1/2 fps"));
|
||||
m_gs_interlace.push_back(GSSetting(7, "Auto", ""));
|
||||
|
||||
m_gs_aspectratio.push_back(GSSetting(0, "Stretch", ""));
|
||||
m_gs_aspectratio.push_back(GSSetting(1, "4:3", ""));
|
||||
|
|
Loading…
Reference in New Issue