diff options
author | louis <louis.braun@gmx.de> | 2013-11-07 17:18:00 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-07 17:18:00 +0100 |
commit | e1d7dc8071b51f788fc8e37e9be613cbab1605b5 (patch) | |
tree | 1d75a9864940237e443591975e7ba765f54d2f3d /timers.c | |
parent | e09cf14b0cf0882b8b4db75ae64cf9d6846b8bc7 (diff) | |
download | skin-nopacity-e1d7dc8071b51f788fc8e37e9be613cbab1605b5.tar.gz skin-nopacity-e1d7dc8071b51f788fc8e37e9be613cbab1605b5.tar.bz2 |
changed channel logos in main menu timers display to scale automatically
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -111,7 +111,7 @@ void cNopacityTimer::CalculateHeight(int space) { height = numLines * lineHeight + 2*space; } else { int lineHeight = font->Height(); - height = config.GetValue("timersLogoHeight") + (numLines +1)* lineHeight + 2*space; + height = geoManager->menuTimersLogoHeight + (numLines +1)* lineHeight + 2*space; } } @@ -164,10 +164,10 @@ void cNopacityTimer::Render(void) { } } - pixmapText->DrawText(cPoint(5, config.GetValue("timersLogoHeight")), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge); + pixmapText->DrawText(cPoint(5, geoManager->menuTimersLogoHeight), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge); int lineHeight = font->Height(); - int yStart = config.GetValue("timersLogoHeight") + lineHeight + 3; + int yStart = geoManager->menuTimersLogoHeight + lineHeight + 3; int numLines = showName.Lines(); for (int line=0; line<numLines; line++) pixmapText->DrawText(cPoint(5, yStart+line*(lineHeight-2)), showName.GetLine(line), Theme.Color(clrMenuFontTimers), clrTransparent, font); @@ -177,8 +177,8 @@ void cNopacityTimer::Render(void) { void cNopacityTimer::DrawLogo(void) { pixmapLogo->Fill(clrTransparent); int showTimerLogo = (config.GetValue("showTimers") < 2) ? 1 : 0; - int logoWidth = config.GetValue("timersLogoWidth"); - int logoHeight = config.GetValue("timersLogoHeight"); + int logoWidth = geoManager->menuTimersLogoWidth; + int logoHeight = geoManager->menuTimersLogoHeight; const cChannel *Channel = timer->Channel(); if (Channel) { bool logoFound = false; |