@@ -1686,12 +1686,30 @@ byte GetDigitWidth(FontSize size)
for (char c = '0'; c <= '9'; c++) {
width = max(GetCharacterWidth(size, c), width);
}
return width;
/**
* Return the digit with the biggest width.
* @param size Font of the digit
* @return Broadest digit.
*/
uint GetBroadestDigit(FontSize size)
{
uint digit = 0;
byte width = 0;
byte w = GetCharacterWidth(size, c);
if (w > width) {
width = w;
digit = c - '0';
return digit;
void ScreenSizeChanged()
_dirty_bytes_per_line = CeilDiv(_screen.width, DIRTY_BLOCK_WIDTH);
_dirty_blocks = ReallocT<byte>(_dirty_blocks, _dirty_bytes_per_line * CeilDiv(_screen.height, DIRTY_BLOCK_HEIGHT));