mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
gui/timeosd: rewrite based on infoclock implementation
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#endif
|
||||
|
||||
#include "gui/volumebar.h"
|
||||
#include "gui/movieplayer.h"
|
||||
|
||||
#include <neutrino.h>
|
||||
#include <gui/infoclock.h>
|
||||
@@ -130,6 +131,8 @@ void CVolumeBar::initVolumeBarPosition()
|
||||
break;
|
||||
}
|
||||
case VOLUMEBAR_POS_TOP_LEFT:
|
||||
if (CMoviePlayerGui::getInstance().osdTimeVisible())
|
||||
y = clock_y + clock_height + v_spacer + SHADOW_OFFSET;
|
||||
break;
|
||||
case VOLUMEBAR_POS_BOTTOM_LEFT:
|
||||
y = (sh + frameBuffer->getScreenY()) - height - v_spacer;
|
||||
@@ -319,6 +322,9 @@ void CVolumeHelper::initInfoClock(Font** font)
|
||||
else
|
||||
mute_corrY = (vol_height - mute_dy) / 2;
|
||||
}
|
||||
|
||||
time_dx = t1*7 + t2*2;
|
||||
time_ax = frameBuffer->getScreenX() + h_spacer;
|
||||
}
|
||||
|
||||
void CVolumeHelper::initMuteIcon()
|
||||
|
Reference in New Issue
Block a user