diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h index 92180b354..773ae2439 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -217,15 +217,15 @@ public: return co; } - unsigned int GetRed() const { + unsigned char GetRed() const { return co & 0xff; } - unsigned int GetGreen() const { + unsigned char GetGreen() const { return (co >> 8) & 0xff; } - unsigned int GetBlue() const { + unsigned char GetBlue() const { return (co >> 16) & 0xff; } }; |