diff options
author | louis <louis.braun@gmx.de> | 2013-03-23 17:14:09 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-03-23 17:14:09 +0100 |
commit | aac2874538b46a9fc7e5540643b1d527241b3fac (patch) | |
tree | c0e5b6302ee739094d291ffdbd5ac015c6c0d0c8 /timers.c | |
parent | 7f3175adc1eb023e8f79b31f6e552fdba8ad02bc (diff) | |
download | skin-nopacity-aac2874538b46a9fc7e5540643b1d527241b3fac.tar.gz skin-nopacity-aac2874538b46a9fc7e5540643b1d527241b3fac.tar.bz2 |
added background pixmaps for main menu timers and epg info window to avoid nasty font pixelation effect
Diffstat (limited to 'timers.c')
-rw-r--r-- | timers.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -17,6 +17,7 @@ cNopacityTimer::cNopacityTimer(cOsd *osd, int numConflicts, const cFont *font, c }
cNopacityTimer::~cNopacityTimer(void) {
+ osd->DestroyPixmap(pixmapBackground);
osd->DestroyPixmap(pixmap);
osd->DestroyPixmap(pixmapLogo);
}
@@ -27,16 +28,19 @@ void cNopacityTimer::SetGeometry(int width, int y) { }
void cNopacityTimer::SetAlpha(int alpha) {
+ pixmapBackground->SetAlpha(alpha);
pixmap->SetAlpha(alpha);
pixmapLogo->SetAlpha(alpha);
}
void cNopacityTimer::Show(void) {
- pixmap->SetLayer(2);
- pixmapLogo->SetLayer(3);
+ pixmapBackground->SetLayer(2);
+ pixmap->SetLayer(3);
+ pixmapLogo->SetLayer(4);
}
void cNopacityTimer::Hide(void) {
+ pixmapBackground->SetLayer(-1);
pixmap->SetLayer(-1);
pixmapLogo->SetLayer(-1);
}
@@ -102,11 +106,13 @@ void cNopacityTimer::CalculateHeight(int space) { }
void cNopacityTimer::CreatePixmaps(int x) {
- pixmap = osd->CreatePixmap(2, cRect(x, y, width, height));
- pixmapLogo = osd->CreatePixmap(3, cRect(x, y, width, height));
+ pixmapBackground = osd->CreatePixmap(2, cRect(x, y, width, height));
+ pixmap = osd->CreatePixmap(3, cRect(x, y, width, height));
+ pixmapLogo = osd->CreatePixmap(4, cRect(x, y, width, height));
}
void cNopacityTimer::Render(void) {
+ pixmapBackground->Fill(clrBlack);
cImageLoader imgLoader;
if (isTimerConflict) {
pixmapLogo->Fill(clrTransparent);
|