diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-06-23 16:03:51 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-06-23 16:03:51 +0200 |
commit | 139a93156b9542c77fbad5afe423de4ccedbb754 (patch) | |
tree | 89089c8eb8ddbf43e0175d2486e01e381aa9c6de /skinlcars.c | |
parent | 9cf7328452d0467769a8640bea552cbe2344bf84 (diff) | |
download | vdr-139a93156b9542c77fbad5afe423de4ccedbb754.tar.gz vdr-139a93156b9542c77fbad5afe423de4ccedbb754.tar.bz2 |
Fixed drawing very long menu titles in the LCARS skin
Diffstat (limited to 'skinlcars.c')
-rw-r--r-- | skinlcars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skinlcars.c b/skinlcars.c index c4278d27..a7c28f10 100644 --- a/skinlcars.c +++ b/skinlcars.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skinlcars.c 4.4 2017/04/20 08:46:42 kls Exp $ + * $Id: skinlcars.c 4.5 2017/06/23 15:52:03 kls Exp $ */ // "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures, @@ -1551,7 +1551,7 @@ void cSkinLCARSDisplayMenu::SetTitle(const char *Title) { if (MenuCategory() != mcMain) { const cFont *font = cFont::GetFont(fontOsd); - int w = font->Width(Title); + int w = min(font->Width(Title), xa07 - xa06 - Gap); osd->DrawRectangle(xa06, yt00, xa07 - w - Gap - 1, yt01 - 1, frameColor); osd->DrawText(xa07 - w - Gap, yt00, Title, Theme.Color(clrMenuTitle), Theme.Color(clrBackground), font, w + Gap, yt01 - yt00, taRight); } |