David Smart / RA8875_L
Revision:
177:0ff83f026bb6
Parent:
167:8aa3fb2a5a31
Child:
178:f21d24431d5a
--- a/DisplayDefs.h	Sun Mar 24 14:49:49 2019 +0000
+++ b/DisplayDefs.h	Thu Jul 11 15:24:02 2019 +0000
@@ -71,11 +71,13 @@
 
 /// type that manages x,y pairs
 ///
-typedef struct
+struct point_t
 {
     loc_t x;             ///< x value in the point
     loc_t y;             ///< y value in the point
-} point_t;
+    point_t(loc_t arg_x = 0, loc_t arg_y = 0) : 
+    x(arg_x), y(arg_y) {}             
+};
 
 /// Data type that manages rectangles, which are pairs of points. 
 ///