summaryrefslogtreecommitdiffstats
path: root/src/common/common_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/common_types.h')
-rw-r--r--src/common/common_types.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h
index 4289b88d3..25dc912a9 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -62,7 +62,7 @@ typedef signed long long s64; ///< 64-bit signed int
typedef float f32; ///< 32-bit floating point
typedef double f64; ///< 64-bit floating point
-#include "common/swap.h"
+#include "common/common.h"
/// Union for fast 16-bit type casting
union t16 {
@@ -101,15 +101,15 @@ union t128 {
};
/// Rectangle data structure
-class Rect {
+class BasicRect {
public:
- Rect(int x0=0, int y0=0, int x1=0, int y1=0) {
+ BasicRect(int x0=0, int y0=0, int x1=0, int y1=0) {
x0_ = x0;
y0_ = y0;
x1_ = x1;
y1_ = y1;
}
- ~Rect() { }
+ ~BasicRect() { }
int x0_; ///< Rect top left X-coordinate
int y0_; ///< Rect top left Y-coordinate
@@ -119,7 +119,7 @@ public:
inline u32 width() const { return abs(x1_ - x0_); }
inline u32 height() const { return abs(y1_ - y0_); }
- inline bool operator == (const Rect& val) const {
+ inline bool operator == (const BasicRect& val) const {
return (x0_ == val.x0_ && y0_ == val.y0_ && x1_ == val.x1_ && y1_ == val.y1_);
}
};