Skip to content

Commit

Permalink
unsigned char param to drawChar(), thanks MoFoQ!
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Apr 11, 2012
1 parent d6161e7 commit 37a860d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Adafruit_GFX.cpp
Expand Up @@ -368,7 +368,7 @@ void Adafruit_GFX::write(uint8_t c) {
}

// draw a character
void Adafruit_GFX::drawChar(int16_t x, int16_t y, char c,
void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
uint16_t color, uint16_t bg, uint8_t size) {

if((x >= _width) || // Clip right
Expand Down
2 changes: 1 addition & 1 deletion Adafruit_GFX.h
Expand Up @@ -66,7 +66,7 @@ class Adafruit_GFX : public Print {
void drawBitmap(int16_t x, int16_t y,
const uint8_t *bitmap, int16_t w, int16_t h,
uint16_t color);
void drawChar(int16_t x, int16_t y, char c,
void drawChar(int16_t x, int16_t y, unsigned char c,
uint16_t color, uint16_t bg, uint8_t size);
#if ARDUINO >= 100
virtual size_t write(uint8_t);
Expand Down

0 comments on commit 37a860d

Please sign in to comment.