diff options
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<XYPOSITION>(x_)), y(static_cast<XYPOSITION>(y_)) { + } // Other automatically defined methods (assignment, copy constructor, destructor) are fine |