From 0ea065bf544ad07409ea782d064bb7fbef27e2f3 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 4 Jun 2021 15:28:43 +0200 Subject: Eliminate cNopacityDisplayMenuView::SetDetailViewSize() and cNopacityDetailView::SetGeometry() All parameters defined in these functions can be set in the constructor of NopacityDetailView. --- displaymenuview.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'displaymenuview.c') 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); -} -- cgit v1.2.3