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 /glcddrivers/simlcd.c | |
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 'glcddrivers/simlcd.c')
-rw-r--r-- | glcddrivers/simlcd.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/glcddrivers/simlcd.c b/glcddrivers/simlcd.c index b7c548b..d1da90f 100644 --- a/glcddrivers/simlcd.c +++ b/glcddrivers/simlcd.c @@ -32,15 +32,8 @@ namespace GLCD { -cDriverSimLCD::cDriverSimLCD(cDriverConfig * config) -: config(config) +cDriverSimLCD::cDriverSimLCD(cDriverConfig * config) : cDriver(config) { - oldConfig = new cDriverConfig(*config); -} - -cDriverSimLCD::~cDriverSimLCD(void) -{ - delete oldConfig; } int cDriverSimLCD::Init(void) @@ -120,7 +113,7 @@ void cDriverSimLCD::Clear(void) { for (int x = 0; x < width; x++) { - LCD[x][y] = GLCD::cColor::White; + LCD[x][y] = GRAPHLCD_White; } } } @@ -160,7 +153,7 @@ void cDriverSimLCD::Refresh(bool refreshAll) { for (x = 0; x < width; x++) { - if (LCD[x][y] == GLCD::cColor::Black) + if (LCD[x][y] == GRAPHLCD_Black) { if (!config->invert) { @@ -195,9 +188,9 @@ void cDriverSimLCD::Refresh(bool refreshAll) } } -GLCD::cColor cDriverSimLCD::GetBackgroundColor(void) +uint32_t cDriverSimLCD::GetBackgroundColor(void) { - return GLCD::cColor::White; + return GRAPHLCD_White; } bool cDriverSimLCD::GetDriverFeature(const std::string & Feature, int & value) |