diff options
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) |