- Llevats els colors roig i blau, queden rarunos

- Reajustat el pintat dels comptadors.
- Els comptadors canvien de color segón el color de l'habitació
- [FIX] print2 pintava mal el número
This commit is contained in:
2024-07-02 11:18:04 +02:00
parent 96c6677a87
commit 77df278568
6 changed files with 20 additions and 15 deletions

View File

@@ -402,7 +402,7 @@ namespace draw
void print2(const int num, const int positions, const int x, const int y, const uint8_t color, const int zoom)
{
char buffer[positions];
char buffer[positions+1];
int digit = positions-1;
int value = num;
while (digit>=0)
@@ -411,6 +411,7 @@ namespace draw
value = value/10;
digit--;
}
buffer[positions]=0;
print2(buffer, x, y, color, zoom);
}