summaryrefslogtreecommitdiff
path: root/glcdgraphics/bitmap.h
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-09-19 00:15:19 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-09-19 00:15:19 +0200
commit36315d4f3ed507bcc613eb92155d561b78e81af6 (patch)
treef641c9cf2ac4bf35053ee57033c2294375c2ed59 /glcdgraphics/bitmap.h
parentface4c4bed68ae0d97d53cb0ebec6f1e02bbfbea (diff)
downloadgraphlcd-base-36315d4f3ed507bcc613eb92155d561b78e81af6.tar.gz
graphlcd-base-36315d4f3ed507bcc613eb92155d561b78e81af6.tar.bz2
deactivated static method cSkinString::Reparse + static cSkinString::mStrings (wasn't used anyways, but caused big problems when using more than one display thread); beauty fixes: initialisation of static cColor-colour constants now moved to .c-file, type fix
Diffstat (limited to 'glcdgraphics/bitmap.h')
-rw-r--r--glcdgraphics/bitmap.h30
1 files changed, 11 insertions, 19 deletions
diff --git a/glcdgraphics/bitmap.h b/glcdgraphics/bitmap.h
index c3442e2..5710a78 100644
--- a/glcdgraphics/bitmap.h
+++ b/glcdgraphics/bitmap.h
@@ -60,16 +60,16 @@ public:
cColor(uint32_t col) { color = col; }
cColor(const cColor & col) { color = col.color; }
- static const uint32_t Black = GRAPHLCD_Black;
- static const uint32_t White = GRAPHLCD_White;
- static const uint32_t Red = 0xFFFF0000;
- static const uint32_t Green = 0xFF00FF00;
- static const uint32_t Blue = 0xFF0000FF;
- static const uint32_t Magenta = 0xFFFF00FF;
- static const uint32_t Cyan = 0xFF00FFFF;
- static const uint32_t Yellow = 0xFFFFFF00;
- static const uint32_t Transparent = GRAPHLCD_Transparent;
- static const uint32_t ERRCOL = GRAPHLCD_ERRCOL;
+ static const uint32_t Black;
+ static const uint32_t White;
+ static const uint32_t Red;
+ static const uint32_t Green;
+ static const uint32_t Blue;
+ static const uint32_t Magenta;
+ static const uint32_t Cyan;
+ static const uint32_t Yellow;
+ static const uint32_t Transparent;
+ static const uint32_t ERRCOL;
uint32_t GetColor (void) { return color; }
void SetColor (uint32_t col) { color = col; }
@@ -79,15 +79,7 @@ public:
operator uint32_t(void) { return GetColor(); }
static cColor ParseColor (std::string col);
- static uint32_t AlignAlpha (uint32_t col) {
- switch (col) {
- case Transparent:
- case ERRCOL:
- return col;
- default:
- return (col & 0xFF000000) ? col : (col | 0xFF000000);
- }
- }
+ static uint32_t AlignAlpha (uint32_t col);
};