projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix some capitalisation in the preferences dialog.
[ardour.git]
/
libs
/
canvas
/
types.cc
diff --git
a/libs/canvas/types.cc
b/libs/canvas/types.cc
index dfd934b126f7bbfd47d13bd11dbb9edfd31f3868..4fd064d7467b1f844847207b6006e85da02ad0cd 100644
(file)
--- a/
libs/canvas/types.cc
+++ b/
libs/canvas/types.cc
@@
-20,6
+20,9
@@
#include <algorithm>
#include <cfloat>
#include <cassert>
#include <algorithm>
#include <cfloat>
#include <cassert>
+
+#include <cairomm/context.h>
+
#include "canvas/types.h"
using namespace std;
#include "canvas/types.h"
using namespace std;
@@
-118,6
+121,16
@@
Rect::fix () const
return r;
}
return r;
}
+bool
+ArdourCanvas::operator!= (Rect const& a, Rect const& b)
+{
+ return a.x0 != b.x0 ||
+ a.x1 != b.x1 ||
+ a.y0 != b.y0 ||
+ a.y1 != b.y1;
+}
+
+
Duple
ArdourCanvas::operator- (Duple const & o)
{
Duple
ArdourCanvas::operator- (Duple const & o)
{
@@
-136,6
+149,12
@@
ArdourCanvas::operator== (Duple const & a, Duple const & b)
return a.x == b.x && a.y == b.y;
}
return a.x == b.x && a.y == b.y;
}
+bool
+ArdourCanvas::operator!= (Duple const & a, Duple const & b)
+{
+ return a.x != b.x || a.y != b.y;
+}
+
Duple
ArdourCanvas::operator- (Duple const & a, Duple const & b)
{
Duple
ArdourCanvas::operator- (Duple const & a, Duple const & b)
{