summaryrefslogtreecommitdiff
path: root/statusheader.c
diff options
context:
space:
mode:
Diffstat (limited to 'statusheader.c')
-rw-r--r--statusheader.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/statusheader.c b/statusheader.c
index 0ef5562..6041984 100644
--- a/statusheader.c
+++ b/statusheader.c
@@ -17,7 +17,7 @@ cStatusHeader::cStatusHeader(void) {
cStatusHeader::~cStatusHeader(void) {
osdManager.releasePixmap(pixmapText);
osdManager.releasePixmap(pixmapTVFrame);
- if (tvguideConfig.scaleVideo) {
+ if (config.scaleVideo) {
cRect vidWin = cDevice::PrimaryDevice()->CanScaleVideo(cRect::Null);
cDevice::PrimaryDevice()->ScaleVideo(vidWin);
}
@@ -26,8 +26,8 @@ cStatusHeader::~cStatusHeader(void) {
void cStatusHeader::Draw(void) {
pixmapText->Fill(clrTransparent);
pixmapTVFrame->Fill(clrTransparent);
- if (tvguideConfig.style == eStyleGraphical) {
- if (tvguideConfig.scaleVideo) {
+ if (config.style == eStyleGraphical) {
+ if (config.scaleVideo) {
drawBackgroundGraphical(bgStatusHeaderWindowed);
cImage *tvFrameBack = imgCache.GetOsdElement(oeStatusHeaderTVFrame);
if (tvFrameBack)
@@ -36,7 +36,7 @@ void cStatusHeader::Draw(void) {
drawBackgroundGraphical(bgStatusHeaderFull);
}
} else {
- if (tvguideConfig.decorateVideo) {
+ if (config.decorateVideo) {
DecorateVideoFrame();
}
drawBackground();
@@ -45,7 +45,7 @@ void cStatusHeader::Draw(void) {
}
void cStatusHeader::ScaleVideo(void) {
- if (tvguideConfig.scaleVideo) {
+ if (config.scaleVideo) {
int width = height * 16 / 9;
int x = osdManager.Left() + geoManager.osdWidth - width;
int y = osdManager.Top();
@@ -59,7 +59,7 @@ void cStatusHeader::DrawInfoText(cGrid *grid) {
int border = 10;
int textWidth = 0;
textWidth = width - 2 * border;
- tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
+ tColor colorTextBack = (config.style == eStyleFlat)?color:clrTransparent;
pixmapText->Fill(clrTransparent);
int x = border;
int y = border;