This commit is contained in:
gabest
2008-07-05 08:48:50 +00:00
parent ad8b3f9b9b
commit c0aa30fc64
4 changed files with 26 additions and 6 deletions

View File

@@ -159,7 +159,7 @@ int GSRasterizer::Draw(Vertex* vertices, int count)
m_sel.afail = context->TEST.AFAIL;
m_sel.fge = PRIM->FGE;
m_sel.rfb =
PRIM->ABE || env.PABE.PABE ||
PRIM->ABE || env.PABE.PABE || context->TEST.DATE ||
context->FRAME.FBMSK != 0 && context->FRAME.FBMSK != 0xffffffff ||
context->TEST.ATE && context->TEST.ATST != 1 && context->TEST.AFAIL == 3;
m_sel.date = context->FRAME.PSM != PSM_PSMCT24 ? context->TEST.DATE : 0;

View File

@@ -124,7 +124,7 @@ void GSRasterizer::InitEx()
m_dsmap[0x000228a8] = &GSRasterizer::DrawScanlineEx<0x000228a8>;
m_dsmap[0x48562808] = &GSRasterizer::DrawScanlineEx<0x48562808>;
m_dsmap[0x445204a8] = &GSRasterizer::DrawScanlineEx<0x445204a8>;
m_dsmap[0x00204408] = &GSRasterizer::DrawScanlineEx<0x00204408>;
m_dsmap[0x00304408] = &GSRasterizer::DrawScanlineEx<0x00304408>;
m_dsmap[0x48522848] = &GSRasterizer::DrawScanlineEx<0x48522848>;
m_dsmap[0x44522848] = &GSRasterizer::DrawScanlineEx<0x44522848>;
m_dsmap[0x485604a8] = &GSRasterizer::DrawScanlineEx<0x485604a8>;
@@ -480,7 +480,7 @@ void GSRasterizer::InitEx()
m_dsmap[0x48520498] = &GSRasterizer::DrawScanlineEx<0x48520498>;
m_dsmap[0x44534898] = &GSRasterizer::DrawScanlineEx<0x44534898>;
m_dsmap[0x685868d8] = &GSRasterizer::DrawScanlineEx<0x685868d8>;
m_dsmap[0x00204498] = &GSRasterizer::DrawScanlineEx<0x00204498>;
m_dsmap[0x00304498] = &GSRasterizer::DrawScanlineEx<0x00304498>;
m_dsmap[0x445c28d8] = &GSRasterizer::DrawScanlineEx<0x445c28d8>;
m_dsmap[0x00034498] = &GSRasterizer::DrawScanlineEx<0x00034498>;

View File

@@ -289,9 +289,9 @@ public:
, m_psrr(psrr)
{
s_n = 0;
s_dump = false;
s_save = false;
s_savez = false;
s_dump = !!AfxGetApp()->GetProfileInt(_T("Debug"), _T("dump"), 0);
s_save = !!AfxGetApp()->GetProfileInt(_T("Debug"), _T("save"), 0);
s_savez = !!AfxGetApp()->GetProfileInt(_T("Debug"), _T("savez"), 0);
}
bool Create(LPCTSTR title)

View File

@@ -221,6 +221,26 @@ static INT32 GSopen(void* dsp, char* title, int mt, int renderer)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CString str;
str.Format(_T("d3dx9_%d.dll"), D3DX_SDK_VERSION);
if(HINSTANCE hDll = LoadLibrary(str))
{
FreeLibrary(hDll);
}
else
{
int res = AfxMessageBox(_T("Please update DirectX!\n\nWould you like to open the download page in your browser?"), MB_YESNO);
if(res == IDYES)
{
ShellExecute(NULL, _T("open"), _T("http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3"), NULL, NULL, SW_SHOWNORMAL);
}
return -1;
}
GSclose();
// TODO