summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-05 13:35:21 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-05 13:35:21 +0000
commit24e138ecb384fb347cb4c9b88aed69283d6e83dc (patch)
tree92efd2e306457f70f612ec7b834c05bfb3db5a3d /plugins
parent1a1d85d91956b167e0629168f34626b76d903af1 (diff)
downloadpcsxr-24e138ecb384fb347cb4c9b88aed69283d6e83dc.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@35732 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfxvideo/draw.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/plugins/dfxvideo/draw.c b/plugins/dfxvideo/draw.c
index 6517594c..3b477b10 100644
--- a/plugins/dfxvideo/draw.c
+++ b/plugins/dfxvideo/draw.c
@@ -1352,11 +1352,20 @@ void BlitScreen32(unsigned char *surf, int32_t x, int32_t y)
if (PreviousPSXDisplay.Range.y0) // centering needed?
{
+ memset(surf, 0, PreviousPSXDisplay.Range.y0 * lPitch);
surf += PreviousPSXDisplay.Range.y0 * lPitch;
dy -= PreviousPSXDisplay.Range.y0;
}
- surf += PreviousPSXDisplay.Range.x0 << 2;
+ if (PreviousPSXDisplay.Range.x0)
+ {
+ for (column = 0; column < dy; column++)
+ {
+ destpix = (uint32_t *)(surf + (column * lPitch));
+ memset(destpix, 0, PreviousPSXDisplay.Range.x0 << 2);
+ }
+ surf += PreviousPSXDisplay.Range.x0 << 2;
+ }
if (PSXDisplay.RGB24)
{
@@ -1405,11 +1414,20 @@ void BlitToYUV(unsigned char * surf,int32_t x,int32_t y)
if (PreviousPSXDisplay.Range.y0) // centering needed?
{
+ memset(surf, 0, PreviousPSXDisplay.Range.y0 * lPitch);
surf += PreviousPSXDisplay.Range.y0 * lPitch;
dy -= PreviousPSXDisplay.Range.y0;
}
- surf += PreviousPSXDisplay.Range.x0 << 2;
+ if (PreviousPSXDisplay.Range.x0)
+ {
+ for (column = 0; column < dy; column++)
+ {
+ destpix = (uint32_t *)(surf + (column * lPitch));
+ memset(destpix, 0, PreviousPSXDisplay.Range.x0 << 2);
+ }
+ surf += PreviousPSXDisplay.Range.x0 << 2;
+ }
if (PSXDisplay.RGB24)
{