From 950518f3a76cc3b30812efc83b96aef8109b40cd Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 17 Jul 2014 19:22:48 +0200 Subject: [PATCH] Made RGBAColor components 8 bits wide The values are all in the range 0..255, so storing more than 8 bits is wasteful. --- src/surface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/surface.h b/src/surface.h index ed13f18..70981f2 100644 --- a/src/surface.h +++ b/src/surface.h @@ -25,9 +25,10 @@ #include #include +#include struct RGBAColor { - unsigned short r,g,b,a; + uint8_t r, g, b, a; }; RGBAColor strtorgba(const std::string &strColor);