From 34182e384c092fc92522ba2cf34e81ef49ca580e Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 3 Mar 2017 15:39:42 +0100 Subject: [PATCH] imageinfo_ni: add Lua-API version Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/49783579a3c7984fc8b775aa78c5700b998db6d8 Author: vanhofen Date: 2017-03-03 (Fri, 03 Mar 2017) Origin message was: ------------------ - imageinfo_ni: add Lua-API version ------------------ 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, 9 insertions(+) diff --git a/src/gui/imageinfo_ni.cpp b/src/gui/imageinfo_ni.cpp index 3de35b294..d10f36a3d 100644 --- a/src/gui/imageinfo_ni.cpp +++ b/src/gui/imageinfo_ni.cpp @@ -49,6 +49,10 @@ #include #include #include +#ifdef ENABLE_LUA +#include +#endif +#include #include #include @@ -311,8 +315,13 @@ void CImageInfoNI::paint() paintLine(xpos, font_info, "Kernel:"); paintLine(xpos+offset, font_info, uname(&uts_info) < 0 ? "n/a" : uts_info.release); +#ifdef ENABLE_LUA ypos += iheight; + paintLine(xpos, font_info, "Lua-API:"); + paintLine(xpos+offset, font_info, to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR)); +#endif + ypos += iheight; paintLine(xpos, font_info, g_Locale->getText(LOCALE_IMAGEINFO_DATE)); paintLine(xpos+offset, font_info, builddate );