mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
vector: Add width to struct zint_vector_circle & use for MaxiCode bullseye
**Incompatible change**
This commit is contained in:
@ -567,14 +567,14 @@ namespace Zint {
|
||||
}
|
||||
if (circle->colour) { // Set means use background colour
|
||||
p.setColor(m_bgColor);
|
||||
p.setWidth(0);
|
||||
p.setWidthF(circle->width);
|
||||
painter.setPen(p);
|
||||
painter.setBrush(bgBrush);
|
||||
painter.setBrush(circle->width ? Qt::NoBrush : bgBrush);
|
||||
} else {
|
||||
p.setColor(m_fgColor);
|
||||
p.setWidth(0);
|
||||
p.setWidthF(circle->width);
|
||||
painter.setPen(p);
|
||||
painter.setBrush(fgBrush);
|
||||
painter.setBrush(circle->width ? Qt::NoBrush : bgBrush);
|
||||
}
|
||||
painter.drawEllipse(QPointF(circle->x, circle->y), radius, radius);
|
||||
circle = circle->next;
|
||||
|
Reference in New Issue
Block a user