remove widest_number definition and usage, add Font::getMaxDigitWidth() method instead

Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 15b2b2ec05
Author: martii <m4rtii@gmx.de>
Date: 2013-11-29 (Fri, 29 Nov 2013)



------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-11-29 21:06:36 +01:00
committed by Michael Liebmann
parent 014fe21967
commit 4d800a439d
10 changed files with 47 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ void CTimeOSD::GetDimensions()
m_height = 10;
m_y = frameBuffer->getScreenY();
m_width = g_Font[TIMEOSD_FONT]->getRenderWidth("00:00:00");
t1 = g_Font[TIMEOSD_FONT]->getRenderWidth(widest_number);
t1 = g_Font[TIMEOSD_FONT]->getMaxDigitWidth();
m_width += t1;
}