summaryrefslogtreecommitdiffstats
path: root/gui/pages.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/pages.hpp')
-rw-r--r--gui/pages.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/pages.hpp b/gui/pages.hpp
index b042c0db8..31ccadb51 100644
--- a/gui/pages.hpp
+++ b/gui/pages.hpp
@@ -17,12 +17,15 @@ enum TOUCH_STATE {
TOUCH_REPEAT = 4
};
-typedef struct {
+struct COLOR {
unsigned char red;
unsigned char green;
unsigned char blue;
unsigned char alpha;
-} COLOR;
+ COLOR() : red(0), green(0), blue(0), alpha(0) {}
+ COLOR(unsigned char r, unsigned char g, unsigned char b, unsigned char a = 255)
+ : red(r), green(g), blue(b), alpha(a) {}
+};
// Utility Functions
int ConvertStrToColor(std::string str, COLOR* color);