Date:2014-07-17 19:22:48 (2 months 13 days ago)
Author:Maarten ter Huurne
Commit:950518f3a76cc3b30812efc83b96aef8109b40cd
Message:Made RGBAColor components 8 bits wide

The values are all in the range 0..255, so storing more than 8 bits
is wasteful.
Files: src/surface.h (1 diff)

Change Details

src/surface.h
2525
2626#include <SDL.h>
2727#include <string>
28#include <cstdint>
2829
2930struct RGBAColor {
30    unsigned short r,g,b,a;
31    uint8_t r, g, b, a;
3132};
3233
3334RGBAColor strtorgba(const std::string &strColor);

Archive Download the corresponding diff file



interactive