diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-07-28 07:13:04 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-07-28 07:13:04 +0000 |
| commit | a50c4510f13673a9aaae3f9cc274e3f82057a0ef (patch) | |
| tree | 52c03e6edb82a159281b7b38eb1e748b4c6c51b9 /plugins | |
| parent | f219e592a3b6fdc897f31f28ee94bbccd2160e02 (diff) | |
| download | pcsxr-a50c4510f13673a9aaae3f9cc274e3f82057a0ef.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@24087 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dfxvideo/prim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/dfxvideo/prim.c b/plugins/dfxvideo/prim.c index 6f5cfafa..bce9d732 100644 --- a/plugins/dfxvideo/prim.c +++ b/plugins/dfxvideo/prim.c @@ -592,8 +592,9 @@ void primBlkFill(unsigned char * baseAddr) sW+=sX; sH+=sY; - if (sX < 0) { sX = 0; sW += sX; } - if (sY < 0) { sY = 0; sH += sX; } + if (sX < 0) sX=0; + if (sY < 0) sY=0; + FillSoftwareArea(sX, sY, sW, sH, BGR24to16(GETLE32(&gpuData[0]))); bDoVSyncUpdate=TRUE; |
