mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
infoviewer: use frameBuffer->getIconPath() to find clock_face icon
Origin commit data
------------------
Commit: f2ad0eac60
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-05-29 (Mon, 29 May 2017)
Origin message was:
------------------
- infoviewer: use frameBuffer->getIconPath() to find clock_face icon
This commit is contained in:
@@ -2484,9 +2484,7 @@ void CInfoViewer::showAnalogClock(int posx,int posy,int dia)
|
|||||||
hy = int((dia * 0.6 * sin(hAngleInRad)));
|
hy = int((dia * 0.6 * sin(hAngleInRad)));
|
||||||
|
|
||||||
if (analogclock_buf == NULL) {
|
if (analogclock_buf == NULL) {
|
||||||
std::string clock_face = ICONSDIR_VAR "/clock_face.png";
|
std::string clock_face = frameBuffer->getIconPath("clock_face");
|
||||||
if (access(clock_face.c_str(), F_OK) != 0)
|
|
||||||
clock_face = ICONSDIR "/clock_face.png";
|
|
||||||
g_PicViewer->DisplayImage(clock_face, posx-dia, posy-dia, 2*dia, 2*dia);
|
g_PicViewer->DisplayImage(clock_face, posx-dia, posy-dia, 2*dia, 2*dia);
|
||||||
|
|
||||||
analogclock_buf = new fb_pixel_t[2*dia * 2*dia];
|
analogclock_buf = new fb_pixel_t[2*dia * 2*dia];
|
||||||
|
Reference in New Issue
Block a user