From c78c2803e50a38db507a800e5a932cd2a1690187 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 4 Feb 2018 18:07:01 +0100 Subject: [PATCH] CScanTs: make left/right borders symmetric Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f3fada8bff9f1047c7b7bfa5546ae198ad75dd27 Author: Stefan Seyfried Date: 2018-02-04 (Sun, 04 Feb 2018) --- src/gui/scan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index 43821e305..0c0a45641 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -393,7 +393,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey) * and should probably be fixed somewhen... */ neutrino_msg_t CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data) { - int w = x + width - xpos2; + int w = width - (xpos2 - x) - 10; /* xpos1 -> 10px border on the left, also keep 10px on the right */ //printf("CScanTs::handleMsg: x %d xpos2 %d width %d w %d\n", x, xpos2, width, w); char buffer[128]; char str[256];