diff options
author | Tectu <joel@unormal.org> | 2012-06-11 12:39:26 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-06-11 12:39:26 +0200 |
commit | 61a6273bcef50a3c25056eb8b8ecbf9445c7df8a (patch) | |
tree | fd17c77da62a585f0e843e1c24dd55c840175008 | |
parent | b718fed6177a3dea4d18b9c6d38f4c1f8f321bec (diff) | |
download | uGFX-61a6273bcef50a3c25056eb8b8ecbf9445c7df8a.tar.gz uGFX-61a6273bcef50a3c25056eb8b8ecbf9445c7df8a.tar.bz2 uGFX-61a6273bcef50a3c25056eb8b8ecbf9445c7df8a.zip |
fixed compiler warnings
-rw-r--r-- | glcd.c | 6 | ||||
-rw-r--r-- | glcd.h | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -40,7 +40,7 @@ void lcdClear(uint16_t color) { }
uint16_t lcdGetPixelColor(uint16_t x, uint16_t y) {
- lld_lcdGetPixelColor(x, y);
+ return lld_lcdGetPixelColor(x, y);
}
void lcdDrawPixel(uint16_t x, uint16_t y, uint16_t color) {
@@ -109,7 +109,7 @@ void lcdDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t co }
}
-void lcdDrawChar(uint16_t x, uint16_t y, unsigned char c, uint16_t charcolor, uint16_t bkcolor) {
+void lcdDrawChar(uint16_t x, uint16_t y, const char c, uint16_t charcolor, uint16_t bkcolor) {
uint16_t i = 0;
uint16_t j = 0;
unsigned char buffer[16];
@@ -128,7 +128,7 @@ void lcdDrawChar(uint16_t x, uint16_t y, unsigned char c, uint16_t charcolor, ui }
}
-void lcdDrawString(uint16_t x, uint16_t y, unsigned char *str, uint16_t color, uint16_t bkcolor) {
+void lcdDrawString(uint16_t x, uint16_t y, const char *str, uint16_t color, uint16_t bkcolor) {
uint8_t TempChar;
do {
@@ -48,8 +48,8 @@ void lcdDrawLine(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t co void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t filled, uint16_t color);
void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t* str, uint16_t fontColor, uint16_t bkColor);
void lcdDrawCircle(uint16_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color);
-void lcdDrawString(uint16_t x, uint16_t y, unsigned char *str, uint16_t color, uint16_t bkColor);
-void lcdDrawChar(uint16_t x, uint16_t y, unsigned char c, uint16_t charcolor, uint16_t bkColor);
+void lcdDrawString(uint16_t x, uint16_t y, const char *str, uint16_t color, uint16_t bkColor);
+void lcdDrawChar(uint16_t x, uint16_t y, const char c, uint16_t charcolor, uint16_t bkColor);
uint16_t lcdGetHeight(void);
uint16_t lcdGetWidth(void);
uint16_t lcdGetOrientation(void);
|