From ef15df9db9e6f1ad9923b1b543df1f4ffed573df Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 9 Jan 2018 11:14:08 +0100 Subject: [PATCH] infoviewer: use OFFSET defines in NI-only code Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/7027cf39eaf42d8ccadd221aa17b6db23c797921 Author: vanhofen Date: 2018-01-09 (Tue, 09 Jan 2018) Origin message was: ------------------ - infoviewer: use OFFSET defines in NI-only code ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 296cc1fb7..82e0e5d98 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -239,7 +239,7 @@ void CInfoViewer::start () time_width = clock->getWidth(); //NI - analogclock_offset = !g_settings.infobar_analogclock ? 0 : 10 ; + analogclock_offset = !g_settings.infobar_analogclock ? 0 : OFFSET_INNER_MID; analogclock_size = !g_settings.infobar_analogclock ? 0 : InfoHeightY - 2*analogclock_offset; clock->setXPos(clock->getXPos() - analogclock_offset - analogclock_size); } @@ -2465,8 +2465,8 @@ void CInfoViewer::ecmInfoBox_show(const char * txt, int w, int h, Font * font) ecmInfoBox->showFooter(false); //set new window dimensions - int h_offset = 5; - int w_offset = 10; + int h_offset = OFFSET_INNER_SMALL; + int w_offset = OFFSET_INNER_MID; ecmInfoBox->setWidth(std::min(max_w, w + 2*w_offset)); ecmInfoBox->setHeight(std::min(max_h, h_header + h + 2*h_offset)); ecmInfoBox->Refresh();