diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-10 15:37:28 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-18 17:03:15 +0200 |
commit | 93af9304c8d798e71f86fc5166cc4d323ed0f9f6 (patch) | |
tree | c96d878edeba357cedb0f07fc429d408fa715130 /recmenu.c | |
parent | d8663ff3096fcea38bf7d7b93dceec90a5fbabe2 (diff) | |
download | vdr-plugin-tvguide-93af9304c8d798e71f86fc5166cc4d323ed0f9f6.tar.gz vdr-plugin-tvguide-93af9304c8d798e71f86fc5166cc4d323ed0f9f6.tar.bz2 |
Cosmetic change in osdmanager.*
Diffstat (limited to 'recmenu.c')
-rw-r--r-- | recmenu.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -28,7 +28,7 @@ cRecMenu::~cRecMenu(void) { if (footer) delete footer; if (pixmapScrollBar) - osdManager.releasePixmap(pixmapScrollBar); + osdManager.DestroyPixmap(pixmapScrollBar); if (imgScrollBar) delete imgScrollBar; } @@ -81,15 +81,15 @@ bool cRecMenu::CalculateHeight(bool reDraw) { void cRecMenu::CreatePixmap(void) { if (pixmap) - osdManager.releasePixmap(pixmap); - pixmap = osdManager.requestPixmap(3, cRect(x, y, width, height)); + osdManager.DestroyPixmap(pixmap); + pixmap = osdManager.CreatePixmap(3, cRect(x, y, width, height)); if (scrollable) { int scrollBarX = x + width - scrollbarWidth - border; int scrollBarY = y + border + headerHeight; int scrollBarHeight = height - headerHeight - footerHeight - 2 * border; if (pixmapScrollBar) - osdManager.releasePixmap(pixmapScrollBar); - pixmapScrollBar = osdManager.requestPixmap(4, cRect(scrollBarX, scrollBarY, scrollbarWidth, scrollBarHeight)); + osdManager.DestroyPixmap(pixmapScrollBar); + pixmapScrollBar = osdManager.CreatePixmap(4, cRect(scrollBarX, scrollBarY, scrollbarWidth, scrollBarHeight)); } else pixmapScrollBar = NULL; } @@ -133,11 +133,11 @@ void cRecMenu::InitMenu(bool complete) { numItems = 0; if (scrollable) { width -= scrollbarWidth + border; - osdManager.releasePixmap(pixmapScrollBar); + osdManager.DestroyPixmap(pixmapScrollBar); pixmapScrollBar = NULL; DELETENULL(imgScrollBar); } - osdManager.releasePixmap(pixmap); + osdManager.DestroyPixmap(pixmap); pixmap = NULL; for (std::list<cRecMenuItem*>::iterator it = menuItems.begin(); it != menuItems.end(); it++) { if (deleteMenuItems) |