@@ -328,10 +328,9 @@ class GFXcanvas1 : public Adafruit_GFX {
328
328
bool getRawPixel (int16_t x, int16_t y) const ;
329
329
void drawFastRawVLine (int16_t x, int16_t y, int16_t h, uint16_t color);
330
330
void drawFastRawHLine (int16_t x, int16_t y, int16_t w, uint16_t color);
331
+ uint8_t *buffer; // protected (no longer private) for subclass flexibility
331
332
332
333
private:
333
- uint8_t *buffer;
334
-
335
334
#ifdef __AVR__
336
335
// Bitmask tables of 0x80>>X and ~(0x80>>X), because X>>Y is slow on AVR
337
336
static const uint8_t PROGMEM GFXsetBit[], GFXclrBit[];
@@ -360,9 +359,7 @@ class GFXcanvas8 : public Adafruit_GFX {
360
359
uint8_t getRawPixel (int16_t x, int16_t y) const ;
361
360
void drawFastRawVLine (int16_t x, int16_t y, int16_t h, uint16_t color);
362
361
void drawFastRawHLine (int16_t x, int16_t y, int16_t w, uint16_t color);
363
-
364
- private:
365
- uint8_t *buffer;
362
+ uint8_t *buffer; // protected (no longer private) for subclass flexibility
366
363
};
367
364
368
365
// / A GFX 16-bit canvas context for graphics
@@ -388,9 +385,7 @@ class GFXcanvas16 : public Adafruit_GFX {
388
385
uint16_t getRawPixel (int16_t x, int16_t y) const ;
389
386
void drawFastRawVLine (int16_t x, int16_t y, int16_t h, uint16_t color);
390
387
void drawFastRawHLine (int16_t x, int16_t y, int16_t w, uint16_t color);
391
-
392
- private:
393
- uint16_t *buffer;
388
+ uint16_t *buffer; // protected (no longer private) for subclass flexibility
394
389
};
395
390
396
391
#endif // _ADAFRUIT_GFX_H
0 commit comments