mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 07:35:25 +03:00
Don't set outline pen - this is what makes AreaFill outline the filled area, which we categorically do not want to happen.
This commit is contained in:
parent
bcd43d3f59
commit
d806f32c7b
@ -283,18 +283,6 @@ static void ami_plot_setapen(ULONG colour)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ami_plot_setopen(ULONG colour)
|
|
||||||
{
|
|
||||||
if(palette_mapped == false) {
|
|
||||||
SetRPAttrs(glob->rp, RPTAG_OPenColor,
|
|
||||||
p96EncodeColor(RGBFB_A8B8G8R8, colour),
|
|
||||||
TAG_DONE);
|
|
||||||
} else {
|
|
||||||
ULONG pen = ami_plot_obtain_pen(glob->shared_pens, colour);
|
|
||||||
if(pen != -1) SetOPen(glob->rp, pen);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ami_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *style)
|
bool ami_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *style)
|
||||||
{
|
{
|
||||||
#ifdef AMI_PLOTTER_DEBUG
|
#ifdef AMI_PLOTTER_DEBUG
|
||||||
@ -473,7 +461,6 @@ bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style)
|
|||||||
ULONG cx,cy;
|
ULONG cx,cy;
|
||||||
|
|
||||||
ami_plot_setapen(style->fill_colour);
|
ami_plot_setapen(style->fill_colour);
|
||||||
ami_plot_setopen(style->fill_colour);
|
|
||||||
|
|
||||||
AreaMove(glob->rp,p[0],p[1]);
|
AreaMove(glob->rp,p[0],p[1]);
|
||||||
|
|
||||||
@ -483,7 +470,6 @@ bool ami_polygon(const int *p, unsigned int n, const plot_style_t *style)
|
|||||||
}
|
}
|
||||||
|
|
||||||
AreaEnd(glob->rp);
|
AreaEnd(glob->rp);
|
||||||
BNDRYOFF(glob->rp);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user