mirror of https://github.com/MLXXXp/Arduboy2.git
Eliminate mismatched type warning in drawChar()
Also changed a loop index from int8_t to uint8_t to match other loops.
This commit is contained in:
parent
ae8e284d41
commit
96b53875b5
|
@ -1161,7 +1161,7 @@ void Arduboy2::drawChar
|
|||
{
|
||||
uint8_t line;
|
||||
bool draw_background = bg != color;
|
||||
uint8_t *bitmap = font + c*5;
|
||||
const unsigned char* bitmap = font + c * 5;
|
||||
|
||||
if ((x >= WIDTH) || // Clip right
|
||||
(y >= HEIGHT) || // Clip bottom
|
||||
|
@ -1179,7 +1179,7 @@ void Arduboy2::drawChar
|
|||
line = 0x0;
|
||||
}
|
||||
|
||||
for (int8_t j = 0; j<8; j++)
|
||||
for (uint8_t j = 0; j < 8; j++)
|
||||
{
|
||||
uint8_t draw_color = (line & 0x1) ? color : bg;
|
||||
|
||||
|
|
Loading…
Reference in New Issue