X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fdfxvideo%2Fprim.c;h=c872c284db045fa2d3391df0f3224c07d12877d8;hb=2da2fc7676c1fc40d26226a7a4c43728d9a2eedf;hp=cc98a8a98204e1877d5791e5add05749bf31863f;hpb=e429fc6073077795431d8fecf18eab4c0c9218b3;p=pcsx_rearmed.git diff --git a/plugins/dfxvideo/prim.c b/plugins/dfxvideo/prim.c index cc98a8a9..c872c284 100644 --- a/plugins/dfxvideo/prim.c +++ b/plugins/dfxvideo/prim.c @@ -348,7 +348,6 @@ static void cmdTexturePage(unsigned char * baseAddr) usMirror=gdata&0x3000; UpdateGlobalTP((unsigned short)gdata); - GlobalTextREST = (gdata&0x00ffffff)>>9; } //////////////////////////////////////////////////////////////////////// @@ -576,7 +575,7 @@ static void primMoveImage(unsigned char * baseAddr) return; } - if(imageSX&1) // not dword aligned? slower func + if((imageSX|imageX0|imageX1)&1) // not dword aligned? slower func { unsigned short *SRCPtr, *DSTPtr; unsigned short LineOffset; @@ -1241,7 +1240,7 @@ static void primLineGEx(unsigned char *baseAddr) sly1=(short)(((int)sly1<>SIGNSHIFT); } - lc1 = gpuData[0] & 0xffffff; + lc1 = GETLE32(&gpuData[0]) & 0xffffff; DrawSemiTrans = (SEMITRANSBIT(GETLE32(&gpuData[0]))) ? TRUE : FALSE;