From 201ccbc9d4c7ad59a7f9c4fe3634d0195d707bd9 Mon Sep 17 00:00:00 2001
From: 0xPIT <karl@pitrich.com>
Date: Fri, 6 Jan 2017 22:56:33 +0100
Subject: [PATCH] change pixel data to be unsigned

---
 OLEDDisplay.cpp | 4 ++--
 OLEDDisplay.h   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/OLEDDisplay.cpp b/OLEDDisplay.cpp
index 77915b8..47ecbec 100644
--- a/OLEDDisplay.cpp
+++ b/OLEDDisplay.cpp
@@ -347,11 +347,11 @@ void OLEDDisplay::drawProgressBar(uint16_t x, uint16_t y, uint16_t width, uint16
   fillCircle(xRadius + maxProgressWidth, yRadius, innerRadius);
 }
 
-void OLEDDisplay::drawFastImage(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *image) {
+void OLEDDisplay::drawFastImage(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const unsigned char *image) {
   drawInternal(xMove, yMove, width, height, image, 0, 0);
 }
 
-void OLEDDisplay::drawXbm(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const char *xbm) {
+void OLEDDisplay::drawXbm(int16_t xMove, int16_t yMove, int16_t width, int16_t height, const unsigned char *xbm) {
   int16_t widthInXbm = (width + 7) / 8;
   uint8_t data;
 
diff --git a/OLEDDisplay.h b/OLEDDisplay.h
index 096bcce..b8067fc 100644
--- a/OLEDDisplay.h
+++ b/OLEDDisplay.h
@@ -155,10 +155,10 @@ class OLEDDisplay : public Print {
     void drawProgressBar(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t progress);
 
     // Draw a bitmap in the internal image format
-    void drawFastImage(int16_t x, int16_t y, int16_t width, int16_t height, const char *image);
+    void drawFastImage(int16_t x, int16_t y, int16_t width, int16_t height, const unsigned char *image);
 
     // Draw a XBM
-    void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, const char *xbm);
+    void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, const unsigned char *xbm);
 
     /* Text functions */
 
-- 
GitLab