mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
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:
@@ -295,7 +295,7 @@ void CVolumeHelper::initInfoClock(Font** font)
|
||||
}
|
||||
digit_offset = (*clock_font)->getDigitOffset();
|
||||
digit_h = (*clock_font)->getDigitHeight();
|
||||
int t1 = (*clock_font)->getRenderWidth(widest_number);
|
||||
int t1 = (*clock_font)->getMaxDigitWidth();
|
||||
int t2 = (*clock_font)->getRenderWidth(":");
|
||||
clock_dy = digit_h + (int)((float)digit_offset * 1.3);
|
||||
clock_dx = t1*7 + t2*2;
|
||||
|
Reference in New Issue
Block a user