diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-09-16 17:59:04 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-09-16 17:59:04 +0200 |
commit | 7178bcc48bc3377c4027e362ba217e9f3815cea5 (patch) | |
tree | 8f7cab76d7e5207128da9058b1d1e2d54f5e3a3a /glcdgraphics/bitmap.h | |
parent | 73ba3e0dd78c96a92e8297e62270bd4e5cd35a44 (diff) | |
download | graphlcd-base-7178bcc48bc3377c4027e362ba217e9f3815cea5.tar.gz graphlcd-base-7178bcc48bc3377c4027e362ba217e9f3815cea5.tar.bz2 |
move config/oldConfig + it's initialisation to base class cDriver; libglcddrivers.so no longer link-dependent on libglcdgraphics.so
Diffstat (limited to 'glcdgraphics/bitmap.h')
-rw-r--r-- | glcdgraphics/bitmap.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/glcdgraphics/bitmap.h b/glcdgraphics/bitmap.h index dcfa26d..c3442e2 100644 --- a/glcdgraphics/bitmap.h +++ b/glcdgraphics/bitmap.h @@ -24,6 +24,13 @@ // this flag will be checked in current versions of vdr-graphlcd-plugin #define GRAPHLCD_CBITMAP_ARGB +// colour definitions for glcddrivers so that libglcddrivers.so isn't link-dependent on libglcdgraphics.so +#define GRAPHLCD_Black 0xFF000000 +#define GRAPHLCD_White 0xFFFFFFFF +#define GRAPHLCD_Transparent 0x00FFFFFF +#define GRAPHLCD_ERRCOL 0x00000000 + + namespace GLCD { @@ -53,16 +60,16 @@ public: cColor(uint32_t col) { color = col; } cColor(const cColor & col) { color = col.color; } - static const uint32_t Black = 0xFF000000; - static const uint32_t White = 0xFFFFFFFF; + 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 = 0x00FFFFFF; - static const uint32_t ERRCOL = 0x00000000; + static const uint32_t Transparent = GRAPHLCD_Transparent; + static const uint32_t ERRCOL = GRAPHLCD_ERRCOL; uint32_t GetColor (void) { return color; } void SetColor (uint32_t col) { color = col; } |