summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-17 14:46:19 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-17 14:46:19 +0200
commit13233ccaed3fd7aad37c99326beee3ddfaf437f3 (patch)
tree82f5205ffe573d41060ec29646e821841f651837 /src/core/common.h
parentmore CCarCtrl (diff)
parentMerge pull request #193 from erorcun/erorcun (diff)
downloadre3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar.gz
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar.bz2
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar.lz
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar.xz
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.tar.zst
re3-13233ccaed3fd7aad37c99326beee3ddfaf437f3.zip
Diffstat (limited to 'src/core/common.h')
-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 2b4c466a..36f67bfa 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
};