move ENABLE_CHANGE_OSD_RESOLUTION to scale2Res() function

Origin commit data
------------------
Commit: 43dbfed1ba
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-19 (Sun, 19 Feb 2017)

Origin message was:
------------------
- move ENABLE_CHANGE_OSD_RESOLUTION to scale2Res() function
This commit is contained in:
vanhofen
2017-02-19 23:31:46 +01:00
parent a76a894de6
commit 0d149b95b1
4 changed files with 6 additions and 24 deletions

View File

@@ -75,10 +75,7 @@ void CInfoClock::initCCLockItems()
setClockFormat("%H:%M", "%H %M");
//set height, NOTE: height is strictly bound to settings
height = g_settings.infoClockFontSize;
#ifdef ENABLE_CHANGE_OSD_RESOLUTION
height = CFrameBuffer::getInstance()->scale2Res(height);
#endif
height = CFrameBuffer::getInstance()->scale2Res(g_settings.infoClockFontSize);
initClockFont(0, height);
// set corner radius depending on clock height