diff options
-rw-r--r-- | amiga/plotters.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c index f12bff3c5..a692b0813 100644 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -264,11 +264,12 @@ static void ami_plot_setopen(struct RastPort *rp, ULONG colr) void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox) { + if((bbox == NULL) || (rp == NULL)) return; 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); + bbox->Width + bbox->Left, bbox->Height + bbox->Top); } |