From cd6dc53650719acf73ccf8ccc0d694b3f32a19ee Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 2 Jan 2019 21:28:06 +0100 Subject: [PATCH] ni-imageinfo: adapt to last libstb-hal changes Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/97b043a6e898bc39d32395cfd9faf5ea93cb6463 Author: vanhofen Date: 2019-01-02 (Wed, 02 Jan 2019) Origin message was: ------------------ - ni-imageinfo: adapt to last libstb-hal changes ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/imageinfo_ni.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index e3a6c9720..b8c339166 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -26,7 +26,7 @@ #include #endif -#if HAVE_CONFIG_HAL_H +#if USE_STB_HAL #include #endif @@ -346,10 +346,13 @@ void CImageInfoNI::paint() paintLine(xpos, font_info, g_Locale->getText(LOCALE_IMAGEINFO_GUI)); paintLine(xpos+offset, font_info, guiversion.str()); -#if HAVE_CONFIG_HAL_H +#if USE_STB_HAL + hal_libversion_t halver; + hal_get_lib_version(&halver); + ypos += iheight; paintLine(xpos, font_info, "libstb-hal:"); - paintLine(xpos+offset, font_info, getPackageVersion()); + paintLine(xpos+offset, font_info, halver.vVersion); #endif #ifdef ENABLE_LUA