summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xamiga/plotters.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 565539c6f..1a746d202 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -354,6 +354,12 @@ bool ami_bitmap(int x, int y, int width, int height,
if(!width || !height) return true;
+ if(((x + width) < glob.rect.MinX) ||
+ ((y + height) < glob.rect.MinY) ||
+ (x > glob.rect.MaxX) ||
+ (y > glob.rect.MaxY))
+ return true;
+
tbm = ami_getcachenativebm(bitmap,width,height,currp->BitMap);
if(!tbm) return true;