From 2730524312509972ef14d9d94aae42c80c6391e1 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 20 Dec 2009 21:30:29 +0000 Subject: [PATCH] recalculate infobar position after font or screensetup changes git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@99 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a45f3716361f81980f33501c32909a0eae831b68 Author: Stefan Seyfried Date: 2009-12-20 (Sun, 20 Dec 2009) ------------------ This commit was generated by Migit --- src/gui/screensetup.cpp | 2 ++ src/neutrino.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/gui/screensetup.cpp b/src/gui/screensetup.cpp index 5c1e7679e..42f5efe26 100644 --- a/src/gui/screensetup.cpp +++ b/src/gui/screensetup.cpp @@ -96,6 +96,8 @@ int CScreenSetup::exec(CMenuTarget* parent, const std::string &) g_settings.screen_EndX = x_coord[1]; g_settings.screen_StartY = y_coord[0]; g_settings.screen_EndY = y_coord[1]; + if (g_Infoviewer) /* recalc infobar position */ + g_InfoViewer->start(); loop = false; break; diff --git a/src/neutrino.cpp b/src/neutrino.cpp index c6f0d8564..c5d8d6add 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1988,6 +1988,9 @@ void CNeutrinoApp::SetupFonts() g_Font[i] = g_fontRenderer->getFont(font.name, style[neutrino_font[i].style], configfile.getInt32(locale_real_names[neutrino_font[i].name], neutrino_font[i].defaultsize) + neutrino_font[i].size_offset * font.size_offset); } g_SignalFont = g_fontRenderer->getFont(font.name, style[signal_font.style], signal_font.defaultsize + signal_font.size_offset * font.size_offset); + /* recalculate infobar position */ + if (g_InfoViewer) + g_InfoViewer->start(); } /**************************************************************************************