From 3a8bbe1d897e07a695a2d580ffa575f8263ebd06 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Mon, 27 Jul 2009 04:49:45 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@24072 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfxvideo/soft.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/dfxvideo') diff --git a/plugins/dfxvideo/soft.c b/plugins/dfxvideo/soft.c index 0a55693a..04a4fbf4 100644 --- a/plugins/dfxvideo/soft.c +++ b/plugins/dfxvideo/soft.c @@ -1038,6 +1038,9 @@ void FillSoftwareAreaTrans(short x0,short y0,short x1, // FILL AREA TRANS { short j,i,dx,dy; + if(y0<0) y0=0; + if(x0<0) x0=0; + if(y0>y1) return; if(x0>x1) return; @@ -1129,6 +1132,9 @@ void FillSoftwareArea(short x0,short y0,short x1, // FILL AREA (BLK FILL) { short j,i,dx,dy; + if(y0<0) y0=0; + if(x0<0) x0=0; + if(y0>y1) return; if(x0>x1) return; -- cgit v1.2.3