X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfxvideo%2Fsoft.c;h=5c71fd333ade5f191037dcd8f06469b22b4b8883;hp=70cf50cd2720d9c35800d61e0f82751696b8ea7c;hb=HEAD;hpb=ae097dfb64926c50902b08b681cbf805b98e3751 diff --git a/plugins/dfxvideo/soft.c b/plugins/dfxvideo/soft.c index 70cf50cd..5c71fd33 100644 --- a/plugins/dfxvideo/soft.c +++ b/plugins/dfxvideo/soft.c @@ -971,13 +971,14 @@ static void FillSoftwareAreaTrans(short x0,short y0,short x1, // FILL AREA TRANS { uint32_t *DSTPtr; unsigned short LineOffset; - uint32_t lcol = HOST2LE32(lSetMask | (((uint32_t)(col)) << 16) | col); + uint32_t lcol = lSetMask | ((uint32_t)col << 16) | col; dx>>=1; DSTPtr = (uint32_t *)(psxVuw + (1024*y0) + x0); LineOffset = 512 - dx; if(!bCheckMask && !DrawSemiTrans) { + lcol = HOST2LE32(lcol); for(i=0;i> 16; if(drawX>xmin) xmin=drawX; @@ -2409,9 +2410,9 @@ static inline void drawPoly3Fi(short x1,short y1,short x2,short y2,short x3,shor for(j=xmin;j> 16; if(drawX>xmin) xmin=drawX; @@ -2489,9 +2490,9 @@ static void drawPoly4F(int32_t rgb) for(j=xmin;j>4)&0xf)])); GetTextureTransColG_SPR(&psxVuw[sprA+1],GETLE16(&psxVuw[clutP+(tC&0xf)])); } + } return; case 1: clutP>>=1; for(sprCY=0;sprCY