summaryrefslogtreecommitdiff
path: root/amiga/plotters.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/plotters.c')
-rw-r--r--amiga/plotters.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 9455d1cde..f12bff3c5 100644
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -264,6 +264,8 @@ static void ami_plot_setopen(struct RastPort *rp, ULONG colr)
void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox)
{
+ if((bbox->Width == 0) || (bbox->Height == 0)) return;
+
ami_plot_setapen(rp, 0xffffffff);
RectFill(rp, bbox->Left, bbox->Top,
bbox->Width+bbox->Left, bbox->Height+bbox->Top);