Check for NULL

This commit is contained in:
Chris Young 2015-02-12 23:18:41 +00:00
parent 26a9c4fa07
commit 3dc8de9be2

View File

@ -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);
}