diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-06-27 23:01:51 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-06-27 23:01:51 +0200 |
commit | 1c11a8081f246dda91ff11d4207d87bb93260b1a (patch) | |
tree | 226ff4fb914fbd93d67aff62ed24ac896ff2c89a /src/core/common.h | |
parent | nullsampman (diff) | |
download | re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar.gz re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar.bz2 re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar.lz re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar.xz re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.tar.zst re3-1c11a8081f246dda91ff11d4207d87bb93260b1a.zip |
Diffstat (limited to 'src/core/common.h')
-rw-r--r-- | src/core/common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h index f79b199b..01455840 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -103,6 +103,8 @@ inline uint32 ldb(uint32 p, uint32 s, uint32 w) #define DEFAULT_SCREEN_WIDTH (640) #define DEFAULT_SCREEN_HEIGHT (448) +#define DEFAULT_SCREEN_HEIGHT_PAL (512) +#define DEFAULT_SCREEN_HEIGHT_NTSC (448) #define DEFAULT_ASPECT_RATIO (4.0f/3.0f) #define DEFAULT_VIEWWINDOW (0.7f) @@ -153,6 +155,16 @@ public: CRGBA(void) { } CRGBA(uint8 r, uint8 g, uint8 b, uint8 a) : r(r), g(g), b(b), a(a) { } + bool operator ==(const CRGBA &right) + { + return this->r == right.r && this->g == right.g && this->b == right.b && this->a == right.a; + } + + bool operator !=(const CRGBA &right) + { + return !(*this == right); + } + CRGBA &operator =(const CRGBA &right) { this->r = right.r; |