diff options
Diffstat (limited to 'dummygrid.c')
-rw-r--r-- | dummygrid.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dummygrid.c b/dummygrid.c index f4b2725..20acedc 100644 --- a/dummygrid.c +++ b/dummygrid.c @@ -34,10 +34,10 @@ void cDummyGrid::PositionPixmap() { y0 += (StartTime() - column->Start())/60*geoManager.minutePixel; } if (!pixmap) { - pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, geoManager.colWidth, viewportHeight)); + pixmap = osdManager.CreatePixmap(-1, cRect(x0, y0, geoManager.colWidth, viewportHeight)); } else if (dirty) { - osdManager.releasePixmap(pixmap); - pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, geoManager.colWidth, viewportHeight)); + osdManager.DestroyPixmap(pixmap); + pixmap = osdManager.CreatePixmap(-1, cRect(x0, y0, geoManager.colWidth, viewportHeight)); } else { pixmap->SetViewPort(cRect(x0, y0, geoManager.colWidth, viewportHeight)); } @@ -48,10 +48,10 @@ void cDummyGrid::PositionPixmap() { x0 += (StartTime() - column->Start())/60*geoManager.minutePixel; } if (!pixmap) { - pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, viewportHeight, geoManager.rowHeight)); + pixmap = osdManager.CreatePixmap(-1, cRect(x0, y0, viewportHeight, geoManager.rowHeight)); } else if (dirty) { - osdManager.releasePixmap(pixmap); - pixmap = osdManager.requestPixmap(-1, cRect(x0, y0, viewportHeight, geoManager.rowHeight)); + osdManager.DestroyPixmap(pixmap); + pixmap = osdManager.CreatePixmap(-1, cRect(x0, y0, viewportHeight, geoManager.rowHeight)); } else { pixmap->SetViewPort(cRect(x0, y0, viewportHeight, geoManager.rowHeight)); } |