summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-08-15 03:43:00 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-08-15 03:43:00 +0200
commit6093d855b067841ea4c51b14ece7544f57d76f2b (patch)
tree01c0f232a678e6afb9ef9b46ad97e47769d0c9bb /src/core
parentsampman cosmetic fix (diff)
downloadre3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.gz
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.bz2
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.lz
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.xz
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.tar.zst
re3-6093d855b067841ea4c51b14ece7544f57d76f2b.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 97a25a3f..62cb2baa 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -118,6 +118,15 @@ public:
CRGBA(void) { }
CRGBA(uint8 r, uint8 g, uint8 b, uint8 a) : r(r), g(g), b(b), a(a) { }
+
+ CRGBA &CRGBA::operator =(const CRGBA &right)
+ {
+ this->r = right.r;
+ this->g = right.g;
+ this->b = right.b;
+ this->a = right.a;
+ return *this;
+ }
#ifdef RWCORE_H
operator RwRGBA &(void) {
return rwRGBA;
@@ -130,6 +139,15 @@ public:
operator RwRGBA (void) const {
return rwRGBA;
}
+
+ CRGBA &CRGBA::operator =(const RwRGBA &right)
+ {
+ this->r = right.red;
+ this->g = right.green;
+ this->b = right.blue;
+ this->a = right.alpha;
+ return *this;
+ }
#endif
};