From 0e2be147ce22f03bde3bc4ed2d8c6be61c00270e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 12 Feb 2010 14:02:22 +0000 Subject: [PATCH] loclalize freq git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@324 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ba59061d54bf9874c2e9d4f5b616d120c26acc6e Author: Jacek Jendrzej Date: 2010-02-12 (Fri, 12 Feb 2010) --- src/gui/streaminfo2.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 57db25b09..8d69bfc31 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -320,7 +320,7 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h) int fontW = g_Font[font_small]->getWidth(); if (paint_mode == 0) { - maxmin_x = sig_text_ber_x-50; + maxmin_x = sig_text_ber_x-(fontW*4); } else { maxmin_x = _x + 40 + xd * 3 + (fontW*4); @@ -473,11 +473,12 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) int xres, yres, aspectRatio, framerate; // paint labels int spaceoffset = 0,i = 0; - int array[4]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)), + int array[5]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)), g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_ARATIO)), g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE)), - g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE))}; - for(i=0 ; i<4; i++) + g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE)), + g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_SCANTS_FREQDATA))}; + for(i=0 ; i<5; i++) { if(spaceoffset < array[i]) spaceoffset = array[i]; @@ -608,7 +609,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) } else if(frontend->getInfo()->type == FE_QAM) { sprintf((char*) buf, "%d.%d MHz", si.tsfrequency/1000, si.tsfrequency%1000); - g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, "Frequenz:" , COL_MENUCONTENTDARK, 0, true); // UTF-8 + g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, g_Locale->getText (LOCALE_SCANTS_FREQDATA) , COL_MENUCONTENTDARK, 0, true); // UTF-8 g_Font[font_info]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8 scaling = 20000; }