| Index: core/fxcrt/include/fx_coordinates.h
|
| diff --git a/core/fxcrt/include/fx_coordinates.h b/core/fxcrt/include/fx_coordinates.h
|
| index 7da6057ed4d7f75b1471e44d399805dab3ef4a14..bfdc46cbf29770924de6ac4bb94e77190885fa86 100644
|
| --- a/core/fxcrt/include/fx_coordinates.h
|
| +++ b/core/fxcrt/include/fx_coordinates.h
|
| @@ -179,8 +179,14 @@ struct FX_RECT {
|
| // LBRT rectangles (y-axis runs upwards).
|
| class CFX_FloatPoint {
|
| public:
|
| + CFX_FloatPoint() : x(0.0f), y(0.0f) {}
|
| CFX_FloatPoint(FX_FLOAT xx, FX_FLOAT yy) : x(xx), y(yy) {}
|
|
|
| + bool operator==(const CFX_FloatPoint& that) const {
|
| + return x == that.x && y == that.y;
|
| + }
|
| + bool operator!=(const CFX_FloatPoint& that) const { return !(*this == that); }
|
| +
|
| FX_FLOAT x;
|
| FX_FLOAT y;
|
| };
|
|
|