Date:2014-07-17 20:11:06 (2 months 2 days ago)
Author:Maarten ter Huurne
Commit:dd27cb2e07476b7bed6f5b170f98ae14fc37986c
Message:Add constructors for RGBAColor

Files: src/gmenu2x.cpp (1 diff)
src/surface.h (1 diff)

Change Details

src/gmenu2x.cpp
802802    sc.setSkin(skin);
803803
804804    //reset colors to the default values
805    skinConfColors[COLOR_TOP_BAR_BG] = (RGBAColor){255,255,255,130};
806    skinConfColors[COLOR_BOTTOM_BAR_BG] = (RGBAColor){255,255,255,130};
807    skinConfColors[COLOR_SELECTION_BG] = (RGBAColor){255,255,255,130};
808    skinConfColors[COLOR_MESSAGE_BOX_BG] = (RGBAColor){255,255,255,255};
809    skinConfColors[COLOR_MESSAGE_BOX_BORDER] = (RGBAColor){80,80,80,255};
810    skinConfColors[COLOR_MESSAGE_BOX_SELECTION] = (RGBAColor){160,160,160,255};
805    skinConfColors[COLOR_TOP_BAR_BG] = RGBAColor(255, 255, 255, 130);
806    skinConfColors[COLOR_BOTTOM_BAR_BG] = RGBAColor(255, 255, 255, 130);
807    skinConfColors[COLOR_SELECTION_BG] = RGBAColor(255, 255, 255, 130);
808    skinConfColors[COLOR_MESSAGE_BOX_BG] = RGBAColor(255, 255, 255);
809    skinConfColors[COLOR_MESSAGE_BOX_BORDER] = RGBAColor(80, 80, 80);
810    skinConfColors[COLOR_MESSAGE_BOX_SELECTION] = RGBAColor(160, 160, 160);
811811
812812    /* Load skin settings from user directory if present,
813813     * or from the system directory. */
src/surface.h
3030struct RGBAColor {
3131    uint8_t r, g, b, a;
3232    static RGBAColor fromString(std::string const& strColor);
33    RGBAColor() : r(0), g(0), b(0), a(0) {}
34    RGBAColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255)
35        : r(r), g(g), b(b), a(a) {}
3336};
3437
3538/**

Archive Download the corresponding diff file



interactive