summaryrefslogtreecommitdiffstats
path: root/src/math/intpoint.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-09-30 10:56:35 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-09-30 10:56:35 +0200
commit8ea4736a46f1a468ee214528ba539e1f505b8273 (patch)
treedb47648ae56b1cc5314afe8ee96fb81e0e276351 /src/math/intpoint.h
parentaf4ff31b4ebcd9d42eed9ae344d29f8d95c3b7c9 (diff)
downloadcolobot-8ea4736a46f1a468ee214528ba539e1f505b8273.tar.gz
colobot-8ea4736a46f1a468ee214528ba539e1f505b8273.tar.bz2
colobot-8ea4736a46f1a468ee214528ba539e1f505b8273.zip
Font coloring; fix for resize hack
- added font coloring and changed default color to black - fixed resize hack incorrectly changing video config, but font resizing will not work for now
Diffstat (limited to 'src/math/intpoint.h')
-rw-r--r--src/math/intpoint.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/math/intpoint.h b/src/math/intpoint.h
index 0f59af6..ebd9c5e 100644
--- a/src/math/intpoint.h
+++ b/src/math/intpoint.h
@@ -39,6 +39,16 @@ struct IntPoint
int y;
IntPoint(int aX = 0, int aY = 0) : x(aX), y(aY) {}
+
+ inline bool operator==(const IntPoint& p) const
+ {
+ return x == p.x && y == p.y;
+ }
+
+ inline bool operator!=(const IntPoint& p) const
+ {
+ return !operator==(p);
+ }
};