Skip to content

Commit

Permalink
set render bound box, so grid is displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko authored and gatecat committed Nov 23, 2023
1 parent 0b8a93e commit 1ec8e41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/fpgaviewwidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ void FPGAViewWidget::renderLines(void)
for (float i = 0.0f; i < 1.0f * ctx_->getGridDimY() + 1; i += 1.0f) {
PolyLine(0.0f, i, 1.0f * ctx_->getGridDimX(), i).build(rendererData_->gfxGrid);
}
rendererData_->bbGlobal.setX0(-1.0f);
rendererData_->bbGlobal.setY0(-1.0f);
rendererData_->bbGlobal.setX1(1.0f * (ctx_->getGridDimX()+1));
rendererData_->bbGlobal.setY1(1.0f * (ctx_->getGridDimY()+1));
rendererData_->gfxGrid.last_render++;
}
if (highlightedOrSelectedChanged) {
Expand Down

0 comments on commit 1ec8e41

Please sign in to comment.