summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-06-04 15:28:43 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-06-06 14:17:44 +0200
commit0ea065bf544ad07409ea782d064bb7fbef27e2f3 (patch)
treef9f2a1dfbd10bc2d3edd105ba558ee3d60932528 /displaymenuview.c
parentcfde4918262c7d9ec44677d073a84cf2667a166c (diff)
downloadskin-nopacity-0ea065bf544ad07409ea782d064bb7fbef27e2f3.tar.gz
skin-nopacity-0ea065bf544ad07409ea782d064bb7fbef27e2f3.tar.bz2
Eliminate cNopacityDisplayMenuView::SetDetailViewSize() and cNopacityDetailView::SetGeometry()
All parameters defined in these functions can be set in the constructor of NopacityDetailView.
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index 7b72b74..cd18b83 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -667,34 +667,3 @@ void cNopacityDisplayMenuView::DrawMessage(eMessageType Type, const char *Text)
geoManager->messageWidth, geoManager->messageHeight),
Type, Text, true);
}
-
-void cNopacityDisplayMenuView::SetDetailViewSize(eDetailViewType detailViewType, cNopacityDetailView *detailView) {
- int x = (config.GetValue("menuAdjustLeft")) ? 0 : geoManager->osdWidth - geoManager->menuContentWidthFull + 2*geoManager->menuSpace;
- int width = 0;
- int height = 0;
- int top = 0;
- int contentBorder = 30;
- int detailHeaderHeight = 0;
-
- width = geoManager->menuContentWidthFull - 2*geoManager->menuSpace;
- height = geoManager->menuContentHeight;
- top = geoManager->menuHeaderHeight;
-
- switch (detailViewType) {
- case dvEvent:
- detailHeaderHeight = config.GetValue("headerDetailedEPG") * height / 100;
- contentBorder = config.GetValue("borderDetailedEPG");
- break;
- case dvRecording:
- detailHeaderHeight = config.GetValue("headerDetailedRecordings") * height / 100;
- contentBorder = config.GetValue("borderDetailedRecordings");
- break;
- case dvText:
- detailHeaderHeight = 0;
- break;
- default:
- break;
- }
- detailView->SetGeometry(x, width, height, top, contentBorder, detailHeaderHeight);
- detailView->SetScrollBar(pixmapScrollbar, pixmapScrollbarBack);
-}