From f2f9466cff10eef54bd165bbfb99bbcc707a0cf4 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 12:53:13 +1000 Subject: Convenience Point constructor from integers as common source of shapes. --- include/Platform.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index e28fa2976..138eb8a75 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -103,6 +103,8 @@ public: explicit Point(XYPOSITION x_=0, XYPOSITION y_=0) : x(x_), y(y_) { } + explicit Point(int x_, int y_) : x(static_cast(x_)), y(static_cast(y_)) { + } // Other automatically defined methods (assignment, copy constructor, destructor) are fine -- cgit v1.2.3