summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/soft.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfxvideo/soft.c')
-rw-r--r--plugins/dfxvideo/soft.c6
1 files changed, 6 insertions, 0 deletions
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;