aboutsummaryrefslogtreecommitdiffstats
path: root/gui/fpgaviewwidget.h
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-27 15:46:00 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-27 15:46:00 +0100
commitc210ce77688677a933e9b2906452766f0c344f33 (patch)
treedcee8c5ccecb90ea166e1070e3f4e9e3bbbab305 /gui/fpgaviewwidget.h
parent816d33fa94bc14f05a90b259cfef9d693734e0df (diff)
downloadnextpnr-c210ce77688677a933e9b2906452766f0c344f33.tar.gz
nextpnr-c210ce77688677a933e9b2906452766f0c344f33.tar.bz2
nextpnr-c210ce77688677a933e9b2906452766f0c344f33.zip
gui: unselect on click and zoom fixes
Diffstat (limited to 'gui/fpgaviewwidget.h')
-rw-r--r--gui/fpgaviewwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/fpgaviewwidget.h b/gui/fpgaviewwidget.h
index 6b94a126..c35821d9 100644
--- a/gui/fpgaviewwidget.h
+++ b/gui/fpgaviewwidget.h
@@ -290,7 +290,8 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
std::unique_ptr<RendererData> rendererData_;
QMutex rendererDataLock_;
- void zoomToBB(const PickQuadTree::BoundingBox &bb);
+ void clampZoom();
+ void zoomToBB(const PickQuadTree::BoundingBox &bb, float margin);
void zoom(int level);
void renderLines(void);
void renderGraphicElement(LineShaderData &out, PickQuadTree::BoundingBox &bb, const GraphicElement &el, float x,