mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	fixed wrong font for clock in horizontal view
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -88,3 +88,4 @@ Version 1.1.0 | ||||
| - Added slovakian translation | ||||
| - fixed channel switching with blue key if detailed epg view is opened and | ||||
|   if "close tvguide on channel switch" is configured | ||||
| - fixed wrong font for clock in horizontal view | ||||
|   | ||||
| @@ -247,8 +247,9 @@ void cTimeLine::setTimeline() { | ||||
| void cTimeLine::drawClock() { | ||||
|     clock->Fill(clrTransparent); | ||||
|     cString currentTime = myTime->GetCurrentTime(); | ||||
|     int textHeight = fontManager.FontTimeLineTime->Height(); | ||||
|     int clockTextWidth = fontManager.FontTimeLineTime->Width(*currentTime); | ||||
|     const cFont *font = (tvguideConfig.displayMode == eVertical)?fontManager.FontTimeLineTime:fontManager.FontTimeLineTimeHorizontal; | ||||
|     int textHeight = font->Height(); | ||||
|     int clockTextWidth = font->Width(*currentTime); | ||||
|     tColor colorFontBack = (tvguideConfig.style == eStyleFlat)?theme.Color(clrHeader):clrTransparent; | ||||
|     if (tvguideConfig.style == eStyleGraphical) { | ||||
|         clock->drawBackgroundGraphical(bgClock); | ||||
| @@ -257,5 +258,5 @@ void cTimeLine::drawClock() { | ||||
|         clock->drawBackground(); | ||||
|         clock->drawBorder(); | ||||
|     } | ||||
|     clock->DrawText(cPoint((geoManager.clockWidth-clockTextWidth)/2, (geoManager.clockHeight-textHeight)/2), *currentTime, theme.Color(clrFont), colorFontBack, fontManager.FontTimeLineTime); | ||||
|     clock->DrawText(cPoint((geoManager.clockWidth-clockTextWidth)/2, (geoManager.clockHeight-textHeight)/2), *currentTime, theme.Color(clrFont), colorFontBack, font); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user