1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 12:24:38 +02:00

Made RGBAColor components 8 bits wide

The values are all in the range 0..255, so storing more than 8 bits
is wasteful.
This commit is contained in:
Maarten ter Huurne 2014-07-17 19:22:48 +02:00
parent 2a4b519282
commit 950518f3a7

View File

@ -25,9 +25,10 @@
#include <SDL.h> #include <SDL.h>
#include <string> #include <string>
#include <cstdint>
struct RGBAColor { struct RGBAColor {
unsigned short r,g,b,a; uint8_t r, g, b, a;
}; };
RGBAColor strtorgba(const std::string &strColor); RGBAColor strtorgba(const std::string &strColor);