From 1400a38bfcb959f30144905b34d61b1ec464eade Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 29 May 2017 16:30:39 +0200 Subject: [PATCH] infoviewer: use frameBuffer->getIconPath() to find clock_face icon Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f2ad0eac6018457da621bd4e20003626b751ce0f Author: vanhofen Date: 2017-05-29 (Mon, 29 May 2017) Origin message was: ------------------ - infoviewer: use frameBuffer->getIconPath() to find clock_face icon --- src/gui/infoviewer.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 6c6b313bd..55ec6a6b1 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -2484,9 +2484,7 @@ void CInfoViewer::showAnalogClock(int posx,int posy,int dia) hy = int((dia * 0.6 * sin(hAngleInRad))); if (analogclock_buf == NULL) { - std::string clock_face = ICONSDIR_VAR "/clock_face.png"; - if (access(clock_face.c_str(), F_OK) != 0) - clock_face = ICONSDIR "/clock_face.png"; + std::string clock_face = frameBuffer->getIconPath("clock_face"); g_PicViewer->DisplayImage(clock_face, posx-dia, posy-dia, 2*dia, 2*dia); analogclock_buf = new fb_pixel_t[2*dia * 2*dia];