diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-09 04:31:45 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-09 04:31:45 +0000 |
| commit | 86b186c36a86461f594076ec261a2090c7b006b7 (patch) | |
| tree | 9a712f4180751866d7ef93b864f3766709324322 /plugins | |
| parent | 6c965b2e6e1cec390054ef4c431f1723f283cb86 (diff) | |
| download | pcsxr-86b186c36a86461f594076ec261a2090c7b006b7.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@36463 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/dfxvideo/draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c index d921ac52..ef1613ce 100644 --- a/plugins/dfxvideo/draw.c +++ b/plugins/dfxvideo/draw.c @@ -1417,7 +1417,7 @@ void BlitToYUV(unsigned char * surf,int32_t x,int32_t y) if (PreviousPSXDisplay.Range.y0) // centering needed? { - for (column = 0; column < PreviousPSXDisplay.Range.y0 >> 1; column++) + for (column = 0; column < (PreviousPSXDisplay.Range.y0 >> 1); column++) { destpix = (uint32_t *)(surf + column * lPitch); for (row = 0; row < dx; row++) @@ -1431,7 +1431,7 @@ void BlitToYUV(unsigned char * surf,int32_t x,int32_t y) for (column = 0; column < (PreviousPSXDisplay.Range.y0 + 1) >> 1; column++) { - destpix = (uint32_t *)(surf + dy * lPitch + column * lPitch); + destpix = (uint32_t *)(surf + (dy + column) * lPitch); for (row = 0; row < dx; row++) { destpix[row] = (4 << 24) | (128 << 16) | (4 << 8) | 128; |
