summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/dfxvideo/draw.c4
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;