mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
				synced 2023-10-05 13:01:48 +00:00 
			
		
		
		
	Fixed cRecMenuItemSelectDirectory::DrawValue
This commit is contained in:
		@@ -682,9 +682,9 @@ void cRecMenuItemSelectDirectory::Draw(void) {
 | 
			
		||||
void cRecMenuItemSelectDirectory::DrawValue(void) {
 | 
			
		||||
    pixmapVal->Fill(clrTransparent);
 | 
			
		||||
    int iconSize = min(128, height);
 | 
			
		||||
    int textX = width - font->Width(folders[currentVal].c_str()) - iconSize;
 | 
			
		||||
    int textX = std::max(width - font->Width(folders[currentVal].c_str()) - iconSize, 10 + indent * 30 + font->Width(*text) + 2 * iconSize);
 | 
			
		||||
    int textY = (height - font->Height()) / 2;
 | 
			
		||||
    pixmapVal->DrawText(cPoint(textX, textY), folders[currentVal].c_str(), colorText, clrTransparent, font);
 | 
			
		||||
    pixmapVal->DrawText(cPoint(textX, textY), folders[currentVal].c_str(), colorText, clrTransparent, font, width - textX - iconSize, font->Height(), taTop | taRight);
 | 
			
		||||
    int iconLeftX = textX - iconSize;
 | 
			
		||||
    int iconRightX = width - iconSize;
 | 
			
		||||
    int iconY = (height - iconSize) / 2;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user