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