Codechange: Store text run positions in vector of points.
This simplifies the interlaced vector of x/y positions.
This commit is contained in:

committed by
Peter Nelson

parent
f7cc88f370
commit
ae575a7a5b
@@ -21,6 +21,9 @@
|
||||
struct Point {
|
||||
int x;
|
||||
int y;
|
||||
|
||||
constexpr Point() : x(0), y(0) {}
|
||||
constexpr Point(int x, int y) : x(x), y(y) {}
|
||||
};
|
||||
|
||||
/** Dimensions (a width and height) of a rectangle in 2D */
|
||||
|
Reference in New Issue
Block a user