Small fixes.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-10-04 15:58:56 +02:00
parent 8bcee1871f
commit 205a0df842
4 changed files with 6 additions and 6 deletions

View File

@ -42,13 +42,13 @@ void Window::clear(CRGB* color) {
}
void Window::drawText(Font* font, uint16_t x, uint16_t y, String text, CRGB* color) {
for (int i=0; i<text.length(); i++) {
drawChar(font, (x+(i*(font->width + 1))<<8), (y<<8), text[i], color);
for (uint16_t i=0; i<text.length(); i++) {
drawChar(font, (x+((i*(font->width + 1))<<8)), (y<<8), text[i], color);
}
}
void Window::drawSubText(Font* font, accum88 x, accum88 y, String text, CRGB* color) {
for (int i=0; i<text.length(); i++) {
for (uint16_t i=0; i<text.length(); i++) {
drawChar(font, x+(i*((font->width + 1)<<8)), y, text[i], color);
}
}