screensaver: add optional colored property

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0f2c73aed3
Author: defans <defans@bluepeercrew.us>
Date: 2016-01-07 (Thu, 07 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
defans
2016-01-07 20:47:15 +01:00
committed by Thilo Graf
parent adde9cbc2b
commit 291e699330
6 changed files with 37 additions and 4 deletions

View File

@@ -46,11 +46,21 @@ class CScreenSaver : public sigc::trackable
bool ReadDir();
void paint();
union u_color {
struct s_color {
uint8_t b, g, r, a;
} uc_color;
unsigned int i_color;
};
u_color clr;
public:
enum
{
SCR_MODE_IMAGE,
SCR_MODE_CLOCK
SCR_MODE_CLOCK,
SCR_MODE_CLOCK_COLOR
};
CScreenSaver();
~CScreenSaver();