mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 18:23:08 +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:
parent
2a4b519282
commit
950518f3a7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user