Clone of the Adafruit Graphics Library
Fork of Adafruit_GFX by
Diff: Adafruit_GFX.h
- Revision:
- 1:e67555532f16
- Parent:
- 0:08cfbae05724
- Child:
- 2:a7d4ac7ed08a
--- a/Adafruit_GFX.h Tue Mar 26 23:08:53 2013 +0000 +++ b/Adafruit_GFX.h Thu Aug 15 13:26:47 2013 +0000 @@ -23,15 +23,14 @@ #define swap(a, b) { int16_t t = a; a = b; b = t; } #define boolean bool -class Adafruit_GFX - : public Stream -// : public Print +class Adafruit_GFX : public Stream { public: //Adafruit_GFX(); + Adafruit_GFX(int16_t w, int16_t h); // Constructor // i have no idea why we have to formally call the constructor. kinda sux - void constructor(int16_t w, int16_t h); + //void constructor(int16_t w, int16_t h); virtual void drawPixel(int16_t x, int16_t y, uint16_t color) = 0; virtual void invertDisplay(boolean i); @@ -76,7 +75,7 @@ virtual int _putc(int value); virtual int _getc(); - int16_t WIDTH, HEIGHT; // this is the 'raw' display w/h - never changes + const int16_t WIDTH, HEIGHT; // this is the 'raw' display w/h - never changes int16_t _width, _height; // dependent on rotation int16_t cursor_x, cursor_y; uint16_t textcolor, textbgcolor;