summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/palette.cpp
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2016-03-12 02:34:23 +0100
committer Dirk Best <mail@dirk-best.de>2016-03-12 02:36:28 +0100
commit75e5db381bd0cbd3fd664ebf83f518cdbd86b345 (patch)
tree7605cf6afe1d7fd1727544b14a55b534b705f25a /src/lib/util/palette.cpp
parent30b4c5e4c006090afbe47c28970e8e4041eb43e8 (diff)
Add support to adjust the screen color
This is now used for monochrome screens instead of creating custom palettes.
Diffstat (limited to 'src/lib/util/palette.cpp')
-rw-r--r--src/lib/util/palette.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/util/palette.cpp b/src/lib/util/palette.cpp
index bd3c2d45ede..8c61c64a470 100644
--- a/src/lib/util/palette.cpp
+++ b/src/lib/util/palette.cpp
@@ -15,9 +15,17 @@
#include <math.h>
+//**************************************************************************
+// CONSTANTS
+//**************************************************************************
+
const rgb_t rgb_t::black(0,0,0);
const rgb_t rgb_t::white(255,255,255);
+// the colors below are commonly used screen colors
+const rgb_t rgb_t::green(0, 255, 0);
+const rgb_t rgb_t::amber(247, 170, 0);
+
//**************************************************************************
// INLINE FUNCTIONS