mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 15:44:34 -04:00
vector: Add width to struct zint_vector_circle & use for MaxiCode bullseye
**Incompatible change**
This commit is contained in:
parent
02c155b6b2
commit
3388f98c00
55 changed files with 171 additions and 238 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue