mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
XFB in SC reverted back to its previous behavior (thx donko). But still hacked in DC (still a FIXME).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2019 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -360,22 +360,24 @@ unsigned int Video_Screenshot(TCHAR* _szFilename)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
void Video_UpdateXFB(u8* _pXFB, u32 _dwWidth, u32 _dwHeight, s32 _dwYOffset, bool scheduling)
|
||||
{
|
||||
if(g_Config.bUseXFB && XFB_isInit())
|
||||
{
|
||||
if (scheduling) // DC mode
|
||||
if (scheduling) // from CPU in DC without fifo&CP (some 2D homebrews)
|
||||
{
|
||||
XFB_SetUpdateArgs(_pXFB, _dwWidth, _dwHeight, _dwYOffset);
|
||||
g_XFBUpdateRequested = TRUE;
|
||||
}
|
||||
else // SC mode or DC without fifo&CP
|
||||
else
|
||||
{
|
||||
if (_pXFB) // from CPU
|
||||
if (_pXFB) // from CPU in SC mode
|
||||
XFB_Draw(_pXFB, _dwWidth, _dwHeight, _dwYOffset);
|
||||
else // from GP
|
||||
else // from GP in DC without fifo&CP (some 2D homebrews)
|
||||
{
|
||||
XFB_Draw();
|
||||
g_XFBUpdateRequested = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user