mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Avoid RectFilling a 0 size area
This commit is contained in:
parent
d8b9198211
commit
26a9c4fa07
@ -4036,7 +4036,7 @@ gui_window_create(struct browser_window *bw,
|
||||
|
||||
g->shared->objects[GID_STATUS] = NewObject(
|
||||
NULL,
|
||||
"frbuttonclass",
|
||||
"frbuttonclass", /**\todo find appropriate class which works on OS3 */
|
||||
GA_ID, GID_STATUS,
|
||||
GA_Left, scrn->WBorLeft + 2,
|
||||
GA_RelBottom, -((2 + height + scrn->WBorBottom - scrn->RastPort.TxHeight)/2),
|
||||
@ -4662,7 +4662,7 @@ static void ami_do_redraw(struct gui_window_2 *gwin)
|
||||
{
|
||||
#ifndef __amigaos4__
|
||||
/* Try to avoid some overprinting - might need glob->rp clearing instead */
|
||||
ami_plot_clear_bbox(gwin->win->RPort, bbox);
|
||||
ami_plot_clear_bbox(&browserglob.rp, bbox);
|
||||
#endif
|
||||
ami_do_redraw_tiled(gwin, true, hcurrent, vcurrent, width, height, hcurrent, vcurrent, bbox, &ctx);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user