diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-16 23:36:18 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2013-11-16 23:36:18 +0100 |
commit | 0bd084d58b958009439e0d50149dd279c39bd99f (patch) | |
tree | 636e01120e95069f634ebfd1f9531faaadf86d90 /displaymenu.c | |
parent | 8f4884436faf92253e6ac1a43bd6596dc2e31c70 (diff) | |
download | skin-flatplus-0bd084d58b958009439e0d50149dd279c39bd99f.tar.gz skin-flatplus-0bd084d58b958009439e0d50149dd279c39bd99f.tar.bz2 |
add menu content fullsize background option
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/displaymenu.c b/displaymenu.c index 0af751f0..5ab91f2e 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -521,8 +521,12 @@ void cFlatDisplayMenu::SetEvent(const cEvent *Event) { if( ContentScrollable() ) DrawScrollbar(ContentScrollTotal(), ContentScrollOffset(), ContentVisibleLines(), contentTop - scrollBarTop, ContentGetHeight(), ContentScrollOffset() > 0, ContentScrollOffset() + ContentVisibleLines() < ContentScrollTotal()); - DecorBorderDraw(cLeft, cTop, cWidth, ContentGetHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, - Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); + if( Config.MenuContentFullSize || ContentScrollable() ) + DecorBorderDraw(cLeft, cTop, cWidth, ContentGetHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, + Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); + else + DecorBorderDraw(cLeft, cTop, cWidth, ContentGetTextHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, + Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); } void cFlatDisplayMenu::SetRecording(const cRecording *Recording) { @@ -589,9 +593,14 @@ void cFlatDisplayMenu::SetRecording(const cRecording *Recording) { RecordingBorder.ColorBg = Config.decorBorderMenuContentBg; RecordingBorder.From = BorderMenuRecord; - DecorBorderDraw(RecordingBorder.Left, RecordingBorder.Top, RecordingBorder.Width, RecordingBorder.Height, - RecordingBorder.Size, RecordingBorder.Type, - RecordingBorder.ColorFg, RecordingBorder.ColorBg, RecordingBorder.From); + if( Config.MenuContentFullSize || ContentScrollable() ) + DecorBorderDraw(RecordingBorder.Left, RecordingBorder.Top, RecordingBorder.Width, RecordingBorder.Height, + RecordingBorder.Size, RecordingBorder.Type, + RecordingBorder.ColorFg, RecordingBorder.ColorBg, RecordingBorder.From); + else + DecorBorderDraw(RecordingBorder.Left, RecordingBorder.Top, RecordingBorder.Width, ContentGetTextHeight(), + RecordingBorder.Size, RecordingBorder.Type, + RecordingBorder.ColorFg, RecordingBorder.ColorBg, RecordingBorder.From); } void cFlatDisplayMenu::SetText(const char *Text, bool FixedFont) { @@ -622,8 +631,12 @@ void cFlatDisplayMenu::SetText(const char *Text, bool FixedFont) { if( ContentScrollable() ) DrawScrollbar(ContentScrollTotal(), ContentScrollOffset(), ContentVisibleLines(), contentTop - scrollBarTop, ContentGetHeight(), ContentScrollOffset() > 0, ContentScrollOffset() + ContentVisibleLines() < ContentScrollTotal()); - DecorBorderDraw(Left, Top, Width, ContentGetHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, - Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); + if( Config.MenuContentFullSize || ContentScrollable() ) + DecorBorderDraw(cLeft, cTop, cWidth, ContentGetHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, + Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); + else + DecorBorderDraw(cLeft, cTop, cWidth, ContentGetTextHeight(), Config.decorBorderMenuContentSize, Config.decorBorderMenuContentType, + Config.decorBorderMenuContentFg, Config.decorBorderMenuContentBg); } int cFlatDisplayMenu::GetTextAreaWidth(void) const { |