From f843e54380b0232aaa29ba3c79886b42d2a6f477 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Sat, 26 Dec 2015 10:50:50 +0100 Subject: [PATCH] CInfoViewerBB: try to fix missing sys scales in infoviewer Signed-off-by: M. Liebmann Signed-off-by: Thilo Graf Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f111ccc98e3e5bcbfc824c1c955d568fb9d9e487 Author: Michael Liebmann Date: 2015-12-26 (Sat, 26 Dec 2015) ------------------ This commit was generated by Migit --- src/gui/infoviewer_bb.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/infoviewer_bb.cpp b/src/gui/infoviewer_bb.cpp index bd81e93f0..c90e03dd7 100644 --- a/src/gui/infoviewer_bb.cpp +++ b/src/gui/infoviewer_bb.cpp @@ -407,19 +407,19 @@ void CInfoViewerBB::showBBButtons(const int modus) if (paint) { fb_pixel_t *pixbuf = NULL; - int buf_x = bbIconMinX; + int buf_x = bbIconMinX - 5; int buf_y = BBarY; - int buf_w = g_InfoViewer->BoxEndX-bbIconMinX; + int buf_w = g_InfoViewer->BoxEndX-buf_x; int buf_h = InfoHeightY_Info; if (modus != -1) { pixbuf = new fb_pixel_t[buf_w * buf_h]; //printf("\nbuf_x: %d, buf_y: %d, buf_w: %d, buf_h: %d, pixbuf: %p\n \n", buf_x, buf_y, buf_w, buf_h, pixbuf); frameBuffer->SaveScreen(buf_x, buf_y, buf_w, buf_h, pixbuf); - } - paintFoot(minX - g_InfoViewer->ChanInfoX); - if ((modus != -1) && (pixbuf != NULL)) { - frameBuffer->RestoreScreen(buf_x, buf_y, buf_w, buf_h, pixbuf); - delete [] pixbuf; + paintFoot(); + if (pixbuf != NULL) { + frameBuffer->RestoreScreen(buf_x, buf_y, buf_w, buf_h, pixbuf); + delete [] pixbuf; + } } int last_x = minX; for (i = BUTTON_MAX; i > 0;) {