summaryrefslogtreecommitdiff
path: root/timeline.c
diff options
context:
space:
mode:
Diffstat (limited to 'timeline.c')
-rw-r--r--timeline.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/timeline.c b/timeline.c
index 5df4b6d..e09d321 100644
--- a/timeline.c
+++ b/timeline.c
@@ -25,9 +25,9 @@ cTimeLine::cTimeLine(cTimeManager *timeManager) {
y12 = geoManager.statusHeaderHeight;
y22 = geoManager.timeLineHeight;
}
- dateViewer = new cStyledPixmap(osdManager.requestPixmap(1, cRect(x11, y11, x21, y21)));
- timeline = osdManager.requestPixmap(2, cRect(x12, y12, x22, y22));
- clock = new cStyledPixmap(osdManager.requestPixmap(3, cRect(0,
+ dateViewer = new cStyledPixmap(osdManager.CreatePixmap(1, cRect(x11, y11, x21, y21)));
+ timeline = osdManager.CreatePixmap(2, cRect(x12, y12, x22, y22));
+ clock = new cStyledPixmap(osdManager.CreatePixmap(3, cRect(0,
geoManager.statusHeaderHeight,
geoManager.clockWidth,
geoManager.clockHeight)));
@@ -36,8 +36,8 @@ cTimeLine::cTimeLine(cTimeManager *timeManager) {
cTimeLine::~cTimeLine(void) {
if (clock)
delete clock;
- osdManager.releasePixmap(timeBase);
- osdManager.releasePixmap(timeline);
+ osdManager.DestroyPixmap(timeBase);
+ osdManager.DestroyPixmap(timeline);
if (dateViewer)
delete dateViewer;
}
@@ -205,7 +205,7 @@ void cTimeLine::DrawTimeIndicator(void) {
return;
}
int deltaTime = (time(0) - timeManager->GetStart()) / 60 * geoManager.minutePixel;
- osdManager.releasePixmap(timeBase);
+ osdManager.DestroyPixmap(timeBase);
int x1, x2, y1, y2;
if (config.displayMode == eVertical) {
x1 = 0;
@@ -218,7 +218,7 @@ void cTimeLine::DrawTimeIndicator(void) {
x2 = 4;
y2 = geoManager.timeLineHeight + config.channelRows * geoManager.rowHeight;
}
- timeBase = osdManager.requestPixmap(3, cRect(x1, y1, x2, y2));
+ timeBase = osdManager.CreatePixmap(3, cRect(x1, y1, x2, y2));
timeBase->Fill(clrTransparent);
timeBase->DrawRectangle(cRect(0, 0, timeBase->ViewPort().Width(), timeBase->ViewPort().Height()), theme.Color(clrTimeBase));
}