aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-01-28 15:19:06 +0000
committerD. Shah <dave@ds0.me>2021-01-28 15:19:06 +0000
commit94e8847d674388c3c8ac663fa4912bb8029b2951 (patch)
tree8e7ffbce4b7d253f05d0bb58ea6430aae8e1b065 /gui
parent5fc3e8e4d2d82396e8ade480192379ccff95a931 (diff)
downloadnextpnr-94e8847d674388c3c8ac663fa4912bb8029b2951.tar.gz
nextpnr-94e8847d674388c3c8ac663fa4912bb8029b2951.tar.bz2
nextpnr-94e8847d674388c3c8ac663fa4912bb8029b2951.zip
cleanup: Spelling fixes
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'gui')
-rw-r--r--gui/fpgaviewwidget.cc4
-rw-r--r--gui/lineshader.cc4
-rw-r--r--gui/quadtree.h8
-rw-r--r--gui/treemodel.h2
4 files changed, 9 insertions, 9 deletions
diff --git a/gui/fpgaviewwidget.cc b/gui/fpgaviewwidget.cc
index 43d73a92..67ab80fd 100644
--- a/gui/fpgaviewwidget.cc
+++ b/gui/fpgaviewwidget.cc
@@ -158,7 +158,7 @@ float FPGAViewWidget::PickedElement::distance(Context *ctx, float wx, float wy)
return std::abs(dw - dab) / dab;
}
default:
- // Not close to antyhing.
+ // Not close to anything.
return -1;
}
});
@@ -819,7 +819,7 @@ QVector4D FPGAViewWidget::mouseToWorldCoordinates(int x, int y)
vec = projection.inverted() * QVector4D(vec.x(), vec.y(), -1, 1);
// Hic sunt dracones.
- // TODO(q3k): grab a book, remind yourselfl linear algebra and undo this
+ // TODO(q3k): grab a book, remind yourself linear algebra and undo this
// operation properly.
QVector3D ray = vec.toVector3DAffine();
ray.normalize();
diff --git a/gui/lineshader.cc b/gui/lineshader.cc
index eded1689..4175dcec 100644
--- a/gui/lineshader.cc
+++ b/gui/lineshader.cc
@@ -26,7 +26,7 @@ void PolyLine::buildPoint(LineShaderData *building, const QVector2D *prev, const
const QVector2D *next) const
{
// buildPoint emits two vertices per line point, along with normals to move
- // them the right directio when rendering and miter to compensate for
+ // them the right direction when rendering and miter to compensate for
// bends.
if (cur == nullptr) {
@@ -104,7 +104,7 @@ void PolyLine::build(LineShaderData &target) const
// For every point on the line, call buildPoint with (prev, point, next).
// If we're building a closed line, prev/next wrap around. Otherwise
- // they are passed as nullptr and buildPoint interprets that accordinglu.
+ // they are passed as nullptr and buildPoint interprets that accordingly.
const QVector2D *prev = nullptr;
// Loop iterator used to ensure next is valid.
diff --git a/gui/quadtree.h b/gui/quadtree.h
index a6c38a85..5bbd2ebb 100644
--- a/gui/quadtree.h
+++ b/gui/quadtree.h
@@ -20,7 +20,7 @@
#ifndef QUADTREE_H
#define QUADTREE_H
-// This file implements a quad tree used for comitting 2D axis aligned
+// This file implements a quad tree used for committing 2D axis aligned
// bounding boxes and then retrieving them by 2D point.
NEXTPNR_NAMESPACE_BEGIN
@@ -382,17 +382,17 @@ template <typename CoordinateT, typename ElementT> class QuadTree
// Standard constructor.
//
- // @param b Bounding box of the entire tree - all comitted elements must
+ // @param b Bounding box of the entire tree - all committed elements must
// fit within in.
QuadTree(BoundingBox b) : root_(b, 0) {}
// Inserts a new value at a given bounding box.e
// BoundingBoxes are not deduplicated - if two are pushed with the same
- // coordinates, the first one will take precendence.
+ // coordinates, the first one will take precedence.
//
// @param k Bounding box at which to store value.
// @param v Value at a given bounding box.
- // @returns Whether the insert was succesful.
+ // @returns Whether the insert was successful.
bool insert(BoundingBox k, ElementT v)
{
k.fixup();
diff --git a/gui/treemodel.h b/gui/treemodel.h
index d7f337a3..49168a91 100644
--- a/gui/treemodel.h
+++ b/gui/treemodel.h
@@ -145,7 +145,7 @@ class IdStringList : public Item
ElementType child_type_;
public:
- // Create an IdStringList at given partent that will contain elements of
+ // Create an IdStringList at given parent that will contain elements of
// the given type.
IdStringList(ElementType type) : Item("root", nullptr), child_type_(type) {}