From 0ea3214d38887f6549586ade0aad2e8dd38d6f78 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sat, 5 Jun 2021 15:11:17 +0200 Subject: Make cNopacityView::SetFonts privat --- detailview.c | 1 + detailview.h | 2 +- menudetailview.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/detailview.c b/detailview.c index b33ba02..74b8b02 100644 --- a/detailview.c +++ b/detailview.c @@ -67,6 +67,7 @@ void cNopacityView::SetGeometry(int x, int y, int width, int height, int border, if (tabbed) tabHeight = 2 * border; contentHeight = height - headerHeight - tabHeight; + SetFonts(); } void cNopacityView::SetFonts(void) { diff --git a/detailview.h b/detailview.h index e94d4b7..5a7fca2 100644 --- a/detailview.h +++ b/detailview.h @@ -56,6 +56,7 @@ protected: int eventID; std::string recFileName; bool headerDrawn; + void SetFonts(void); void DrawHeader(void); void ClearContent(void); void CreateContent(int fullHeight); @@ -80,7 +81,6 @@ public: void SetRecFileName(const char *name) { recFileName = name ? name : ""; }; virtual void LoadMedia(void) {}; void SetGeometry(int x, int y, int width, int height, int border, int headerHeight); - void SetFonts(void); void SetScrollbarPixmaps(cPixmap *s, cPixmap *sb) { pixmapScrollbar = s; pixmapScrollbarBack = sb; }; virtual bool KeyUp(void); virtual bool KeyDown(void); diff --git a/menudetailview.c b/menudetailview.c index f80f3e8..12092bb 100644 --- a/menudetailview.c +++ b/menudetailview.c @@ -379,7 +379,6 @@ void cNopacityDetailView::Action(void) { if (!view) return; view->SetGeometry(x, top, width, height, border, headerHeight); - view->SetFonts(); view->SetScrollbarPixmaps(scrollBar, scrollBarBack); view->LoadMedia(); view->Start(); -- cgit v1.2.3