diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-25 20:33:14 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-10-25 20:33:14 +0200 |
commit | f01a02be9accb5807879febf9fa77fe6fdfd6bd5 (patch) | |
tree | 76b4817d0e4e72ae47b41c9d799702a37a9e81ee /gui | |
parent | 169b42da4a1064f28776ee80eaa7449facaf200b (diff) | |
download | nextpnr-f01a02be9accb5807879febf9fa77fe6fdfd6bd5.tar.gz nextpnr-f01a02be9accb5807879febf9fa77fe6fdfd6bd5.tar.bz2 nextpnr-f01a02be9accb5807879febf9fa77fe6fdfd6bd5.zip |
proper update of empty decal
Diffstat (limited to 'gui')
-rw-r--r-- | gui/fpgaviewwidget.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc index fb5e36b2..eeee74e1 100644 --- a/gui/fpgaviewwidget.cc +++ b/gui/fpgaviewwidget.cc @@ -198,8 +198,6 @@ void FPGAViewWidget::renderGraphicElement(LineShaderData &out, PickQuadTree::Bou bb.setY0(std::min(bb.y0(), y + el.y1)); bb.setX1(std::max(bb.x1(), x + el.x2)); bb.setY1(std::max(bb.y1(), y + el.y2)); - - out.last_render++; return; } @@ -209,14 +207,13 @@ void FPGAViewWidget::renderGraphicElement(LineShaderData &out, PickQuadTree::Bou bb.setY0(std::min(bb.y0(), y + el.y1)); bb.setX1(std::max(bb.x1(), x + el.x2)); bb.setY1(std::max(bb.y1(), y + el.y2)); - - out.last_render++; return; } } void FPGAViewWidget::renderDecal(LineShaderData &out, PickQuadTree::BoundingBox &bb, const DecalXY &decal) { + out.last_render++; if (decal.decal == DecalId()) return; @@ -239,6 +236,7 @@ void FPGAViewWidget::renderArchDecal(LineShaderData out[GraphicElement::STYLE_MA case GraphicElement::STYLE_FRAME: case GraphicElement::STYLE_INACTIVE: case GraphicElement::STYLE_ACTIVE: + out[el.style].last_render++; renderGraphicElement(out[el.style], bb, el, offsetX, offsetY); break; default: |