Fixed Tekken 5 regression causing black screens and missing text

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1027 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2009-04-20 00:11:34 +00:00
parent 28c81a2ff1
commit adf6dfdcd4
1 changed files with 2 additions and 2 deletions

View File

@ -1010,7 +1010,7 @@ static int __fastcall Vif0TransUnpack(u32 *data) // UNPACK
if(vif0Regs->offset != 0 || vif0.cl != 0) if(vif0Regs->offset != 0 || vif0.cl != 0)
{ {
ret = vif0.tag.size; ret = vif0.tag.size;
vif0.tag.size = VIFalign(data, &vif0.tag, vif0.vifpacketsize, VIF0dmanum); vif0.tag.size -= vif0.vifpacketsize - VIFalign(data, &vif0.tag, vif0.vifpacketsize, VIF0dmanum);
ret = ret - vif0.tag.size; ret = ret - vif0.tag.size;
data += ret; data += ret;
if(vif0.vifpacketsize > 0) VIFunpack(data, &vif0.tag, vif0.vifpacketsize - ret, VIF0dmanum); if(vif0.vifpacketsize > 0) VIFunpack(data, &vif0.tag, vif0.vifpacketsize - ret, VIF0dmanum);
@ -1851,7 +1851,7 @@ static int __fastcall Vif1TransUnpack(u32 *data)
'in pieces' */ 'in pieces' */
if(vif1Regs->offset != 0 || vif1.cl != 0) if(vif1Regs->offset != 0 || vif1.cl != 0)
{ {
vif1.tag.size = VIFalign(data, &vif1.tag, vif1.vifpacketsize, VIF1dmanum); vif1.tag.size -= vif1.vifpacketsize - VIFalign(data, &vif1.tag, vif1.vifpacketsize, VIF1dmanum);
ret = ret - vif1.tag.size; ret = ret - vif1.tag.size;
data += ret; data += ret;
if((vif1.vifpacketsize - ret) > 0) VIFunpack(data, &vif1.tag, vif1.vifpacketsize - ret, VIF1dmanum); if((vif1.vifpacketsize - ret) > 0) VIFunpack(data, &vif1.tag, vif1.vifpacketsize - ret, VIF1dmanum);