mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
fixed a bug that some recmenuitems are not redrawn
This commit is contained in:
parent
2c72feabbd
commit
497f95aa6f
@ -426,7 +426,6 @@ cImage *cImageCache::CreateGrid(int width, int height, bool active) {
|
||||
tColor *imgData = (tColor *)image->Data();
|
||||
if (w != width || h != height) {
|
||||
ImageScaler scaler;
|
||||
//esyslog("tvguide: imagescaler parameters: width %d, height %d, w %d, h %d", width, height, w, h);
|
||||
scaler.SetImageParameters(imgData, width, width, height, w, h);
|
||||
for (const void *pixels_end = &pixels[w*h]; pixels < pixels_end; ++pixels)
|
||||
scaler.PutSourcePixel(pixels->blue / ((MaxRGB + 1) / 256),
|
||||
|
@ -2564,7 +2564,6 @@ void cRecMenuItemSearchTimer::SetPixmaps(void) {
|
||||
|
||||
void cRecMenuItemSearchTimer::Draw(void) {
|
||||
int textX = DrawIcons();
|
||||
if (!drawn) {
|
||||
pixmapText->Fill(clrTransparent);
|
||||
textX += 20;
|
||||
cString label;
|
||||
@ -2578,8 +2577,6 @@ void cRecMenuItemSearchTimer::Draw(void) {
|
||||
cString info = cString::sprintf("%s: %d, %s: %d", tr("active timers"), numTimersActive, tr("recordings done"), numRecordings);
|
||||
pixmapText->DrawText(cPoint(textX, 5 + (height/2 - font->Height())/2), *label, colorText, clrTransparent, font);
|
||||
pixmapText->DrawText(cPoint(textX, height/2 + (height/2 - fontSmall->Height())/2), *info, colorText, clrTransparent, fontSmall);
|
||||
drawn = true;
|
||||
}
|
||||
}
|
||||
|
||||
void cRecMenuItemSearchTimer::Hide(void) {
|
||||
@ -2693,13 +2690,10 @@ void cRecMenuItemFavorite::SetPixmaps(void) {
|
||||
|
||||
void cRecMenuItemFavorite::Draw(void) {
|
||||
int textX = DrawIcons();
|
||||
if (!drawn) {
|
||||
pixmapText->Fill(clrTransparent);
|
||||
textX += 20;
|
||||
cString label = cString::sprintf("\"%s\"", favorite.SearchString().c_str());
|
||||
pixmapText->DrawText(cPoint(textX, (height - fontLarge->Height())/2), *label, colorText, clrTransparent, fontLarge);
|
||||
drawn = true;
|
||||
}
|
||||
}
|
||||
|
||||
void cRecMenuItemFavorite::Hide(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user