From 3eb867ebf8ab0c0b9e9452ea8986e02bd1947414 Mon Sep 17 00:00:00 2001 From: martii Date: Sun, 6 Jul 2014 13:09:04 +0200 Subject: [PATCH] gui/timeosd: set progressbar to timescale style --- src/gui/timeosd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/timeosd.cpp b/src/gui/timeosd.cpp index 09b0fb1e5..543fc6cfd 100644 --- a/src/gui/timeosd.cpp +++ b/src/gui/timeosd.cpp @@ -70,6 +70,8 @@ void CTimeOSD::Init() corner_rad = (g_settings.rounded_corners) ? std::max(height/10, CORNER_RADIUS_SMALL) : 0; initCCLockItems(); + + timescale.setType(CProgressBar::PB_TIMESCALE); } #if 0 //if hide() or kill() required, it's recommended to use it separately @@ -104,7 +106,6 @@ void CTimeOSD::updatePos(int position, int duration) percent = 0; timescale.setProgress(x, y + height/4, width, height/2, percent, 100); - timescale.setRgb(0, 100, 70); timescale.paint(); frameBuffer->blit(); }