summaryrefslogtreecommitdiffstats
path: root/base/gfx/point.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/point.cc')
-rw-r--r--base/gfx/point.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gfx/point.cc b/base/gfx/point.cc
index cbe687b..8fb958e 100644
--- a/base/gfx/point.cc
+++ b/base/gfx/point.cc
@@ -20,6 +20,12 @@ Point::Point(int x, int y) : x_(x), y_(y) {
Point::Point(const POINT& point) : x_(point.x), y_(point.y) {
}
+Point& Point::operator=(const POINT& point) {
+ x_ = point.x;
+ y_ = point.y;
+ return *this;
+}
+
POINT Point::ToPOINT() const {
POINT p;
p.x = x_;