diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:28:11 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:44:39 +0200 |
commit | 0766d679806e1ed098f562672e88ef324c3cd680 (patch) | |
tree | 727689519e3f2a6b098f7dc1337cb639f44d3321 /view.c | |
parent | 3513f82a8c4e01bc375453c9dcb8001b7ea82cd2 (diff) | |
download | vdr-plugin-tvguide-0766d679806e1ed098f562672e88ef324c3cd680.tar.gz vdr-plugin-tvguide-0766d679806e1ed098f562672e88ef324c3cd680.tar.bz2 |
Change tvguideConfig to Config
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -71,7 +71,7 @@ void cView::SetGeometry(void) { scrollbarWidth = 40; width = geoManager.osdWidth - scrollbarWidth; height = geoManager.osdHeight; - border = tvguideConfig.epgViewBorder; + border = config.epgViewBorder; headerWidth = geoManager.headerContentWidth; headerHeight = geoManager.epgViewHeaderHeight; if (tabbed) @@ -89,8 +89,8 @@ void cView::DrawHeader(void) { } pixmapHeader->Fill(clrTransparent); pixmapHeaderLogo->Fill(clrTransparent); - if (tvguideConfig.style == eStyleGraphical) { - if (tvguideConfig.scaleVideo) { + if (config.style == eStyleGraphical) { + if (config.scaleVideo) { pixmapHeader->drawBackgroundGraphical(bgStatusHeaderWindowed); } else { pixmapHeader->drawBackgroundGraphical(bgStatusHeaderFull); @@ -101,9 +101,9 @@ void cView::DrawHeader(void) { } //Channel Logo int logoHeight = 2 * headerHeight / 3; - int logoWidth = logoHeight * tvguideConfig.logoWidthRatio / tvguideConfig.logoHeightRatio; + int logoWidth = logoHeight * config.logoWidthRatio / config.logoHeightRatio; int xText = border / 2; - if (channel && !tvguideConfig.hideChannelLogos) { + if (channel && !config.hideChannelLogos) { cImageLoader imgLoader; if (imgLoader.LoadLogo(channel, logoWidth, logoHeight)) { cImage logo = imgLoader.GetImage(); @@ -125,7 +125,7 @@ void cView::DrawHeader(void) { if (!event) return; const cTimer *ti; - if (tvguideConfig.useRemoteTimers && pRemoteTimers) { + if (config.useRemoteTimers && pRemoteTimers) { RemoteTimers_GetMatch_v1_0 rtMatch; rtMatch.event = event; pRemoteTimers->Service("RemoteTimers::GetMatch-v1.0", &rtMatch); @@ -450,7 +450,7 @@ void cView::DrawScrollbar(void) { cImage *cView::CreateScrollbarImage(int width, int height, tColor clrBgr, tColor clrBlend) { cImage *image = new cImage(cSize(width, height)); image->Fill(clrBgr); - if (tvguideConfig.style != eStyleFlat) { + if (config.style != eStyleFlat) { int numSteps = 64; int alphaStep = 0x03; if (height < 30) @@ -485,7 +485,7 @@ bool cView::KeyUp(void) { if (aktHeight >= 0) { return false; } - int step = tvguideConfig.detailedViewScrollStep * font->Height(); + int step = config.detailedViewScrollStep * font->Height(); int newY = aktHeight + step; if (newY > 0) newY = 0; @@ -503,7 +503,7 @@ bool cView::KeyDown(void) { if (totalHeight - ((-1)*aktHeight) == screenHeight) { return false; } - int step = tvguideConfig.detailedViewScrollStep * font->Height(); + int step = config.detailedViewScrollStep * font->Height(); int newY = aktHeight - step; if ((-1)*newY > totalHeight - screenHeight) newY = (-1)*(totalHeight - screenHeight); @@ -540,9 +540,9 @@ void cEPGView::SetTabs(void) { void cEPGView::CheckEPGImages(void) { if (eventID > 0) { - for (int i=1; i <= tvguideConfig.numAdditionalEPGPictures; i++) { + for (int i=1; i <= config.numAdditionalEPGPictures; i++) { cString epgimage; - epgimage = cString::sprintf("%s%d_%d.jpg", *tvguideConfig.epgImagePath, eventID, i); + epgimage = cString::sprintf("%s%d_%d.jpg", *config.epgImagePath, eventID, i); FILE *fp = fopen(*epgimage, "r"); if (fp) { std::stringstream ss; @@ -560,8 +560,8 @@ void cEPGView::CheckEPGImages(void) { } void cEPGView::DrawImages(void) { - int imgWidth = tvguideConfig.epgImageWidthLarge; - int imgHeight = tvguideConfig.epgImageHeightLarge; + int imgWidth = config.epgImageWidthLarge; + int imgHeight = config.epgImageHeightLarge; int totalHeight = numEPGPics * (imgHeight + border); |