diff options
Diffstat (limited to 'glcddrivers/gu256x64-3900.c')
-rw-r--r-- | glcddrivers/gu256x64-3900.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/glcddrivers/gu256x64-3900.c b/glcddrivers/gu256x64-3900.c index 2d379bd..d135c88 100644 --- a/glcddrivers/gu256x64-3900.c +++ b/glcddrivers/gu256x64-3900.c @@ -104,19 +104,12 @@ static const int kInterfaceSerial = 1; // serial mode cDriverGU256X64_3900::cDriverGU256X64_3900(cDriverConfig * config) -: config(config) +: cDriver(config) { - oldConfig = new cDriverConfig(*config); - portFd = -1; m_nRefreshCounter = 0; } -cDriverGU256X64_3900::~cDriverGU256X64_3900() -{ - delete oldConfig; -} - int cDriverGU256X64_3900::Init() { int x; @@ -525,7 +518,7 @@ void cDriverGU256X64_3900::SetPixel(int x, int y, uint32_t data) c = 0x80 >> (y % 8); - if (data == GLCD::cColor::White) + if (data == GRAPHLCD_White) m_pDrawMem[x][y/8] |= c; else m_pDrawMem[x][y/8] &= ( 0xFF ^ c ); @@ -542,7 +535,7 @@ void cDriverGU256X64_3900::Set8Pixels(int x, int y, unsigned char data) for (n = 0; n < 8; ++n) { if (data & (0x80 >> n)) // if bit is set - SetPixel(x + n, y, GLCD::cColor::White); + SetPixel(x + n, y, GRAPHLCD_White); } } #endif |