From 0b802512a03589dc92a59ed45dc601cd56e89e13 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Nov 2017 23:08:43 +0100 Subject: [PATCH] streaminfo: re-add osd resolution Signed-off-by: Thilo Graf Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f033e623c3d5f48130471df3439f0e81a6aa8bdb Author: vanhofen Date: 2017-11-06 (Mon, 06 Nov 2017) Origin message was: ------------------ - streaminfo: re-add osd resolution Signed-off-by: Thilo Graf ------------------ This commit was generated by Migit --- src/gui/streaminfo2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 8d6ad54e0..bd627f1b2 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -952,6 +952,14 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) } } + // osd resolution + r.key = g_Locale->getText(LOCALE_STREAMINFO_OSD_RESOLUTION); + r.key += ": "; + snprintf(buf, sizeof(buf), "%dx%d", frameBuffer->getScreenWidth(true), frameBuffer->getScreenHeight(true)); + r.val = buf; + r.col = COL_MENUCONTENT_TEXT; + v.push_back(r); + // aspect ratio r.key = g_Locale->getText (LOCALE_STREAMINFO_ARATIO); r.key += ": ";