diff options
author | hizzlekizzle | 2019-08-02 08:38:48 -0500 |
---|---|---|
committer | GitHub | 2019-08-02 08:38:48 -0500 |
commit | fcb84f0c6ad095c355d8c0835fc6c5fcdc2a6813 (patch) | |
tree | 00fe89450ca22056153f2296a56cd6bf1f26bfb7 /plugins/dfxvideo | |
parent | 735de186017c42bb563933b77165f8827dbb6d7a (diff) | |
parent | 208177a7ea246a6e26222500da945a414b292b57 (diff) | |
download | pcsx_rearmed-fcb84f0c6ad095c355d8c0835fc6c5fcdc2a6813.tar.gz pcsx_rearmed-fcb84f0c6ad095c355d8c0835fc6c5fcdc2a6813.tar.bz2 pcsx_rearmed-fcb84f0c6ad095c355d8c0835fc6c5fcdc2a6813.zip |
Merge pull request #325 from retro-wertz/SysPrintf_to_retro_log
SysPrintf to retro_log and silence some warnings
Diffstat (limited to 'plugins/dfxvideo')
-rw-r--r-- | plugins/dfxvideo/soft.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/dfxvideo/soft.c b/plugins/dfxvideo/soft.c index c1c3bef..1b22ed5 100644 --- a/plugins/dfxvideo/soft.c +++ b/plugins/dfxvideo/soft.c @@ -6316,6 +6316,7 @@ static void DrawSoftwareSpriteMirror(unsigned char * baseAddr,int32_t w,int32_t sprtYa=(sprtY<<10); clutP=(clutY0<<10)+clutX0; for (sprCY=0;sprCY<sprtH;sprCY++) + { for (sprCX=0;sprCX<sprtW;sprCX++) { tC= psxVub[((textY0+(sprCY*lYDir))<<11) + textX0 +(sprCX*lXDir)]; @@ -6323,28 +6324,33 @@ static void DrawSoftwareSpriteMirror(unsigned char * baseAddr,int32_t w,int32_t GetTextureTransColG_SPR(&psxVuw[sprA],GETLE16(&psxVuw[clutP+((tC>>4)&0xf)])); GetTextureTransColG_SPR(&psxVuw[sprA+1],GETLE16(&psxVuw[clutP+(tC&0xf)])); } + } return; case 1: clutP>>=1; for(sprCY=0;sprCY<sprtH;sprCY++) + { for(sprCX=0;sprCX<sprtW;sprCX++) { tC = psxVub[((textY0+(sprCY*lYDir))<<11)+(GlobalTextAddrX<<1) + textX0 + (sprCX*lXDir)] & 0xff; GetTextureTransColG_SPR(&psxVuw[((sprtY+sprCY)<<10)+sprtX + sprCX],psxVuw[clutP+tC]); } - return; + } + return; case 2: for (sprCY=0;sprCY<sprtH;sprCY++) + { for (sprCX=0;sprCX<sprtW;sprCX++) { GetTextureTransColG_SPR(&psxVuw[((sprtY+sprCY)<<10)+sprtX+sprCX], GETLE16(&psxVuw[((textY0+(sprCY*lYDir))<<10)+GlobalTextAddrX + textX0 +(sprCX*lXDir)])); } - return; + } + return; } } |