mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-21 09:52:07 +03:00
Clear the window using the BackFill hook
This commit is contained in:
parent
3dc8de9be2
commit
6c7a3c3a73
@ -265,10 +265,8 @@ static void ami_plot_setopen(struct RastPort *rp, ULONG colr)
|
|||||||
void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox)
|
void ami_plot_clear_bbox(struct RastPort *rp, struct IBox *bbox)
|
||||||
{
|
{
|
||||||
if((bbox == NULL) || (rp == NULL)) return;
|
if((bbox == NULL) || (rp == NULL)) return;
|
||||||
if((bbox->Width == 0) || (bbox->Height == 0)) return;
|
|
||||||
|
|
||||||
ami_plot_setapen(rp, 0xffffffff);
|
EraseRect(rp, bbox->Left, bbox->Top,
|
||||||
RectFill(rp, bbox->Left, bbox->Top,
|
|
||||||
bbox->Width + bbox->Left, bbox->Height + bbox->Top);
|
bbox->Width + bbox->Left, bbox->Height + bbox->Top);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user