commit c6874fe6c2ea72db25aa0a280391f0bb6e5ea788
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jun 12 13:12:50 2017 +0100
git add gcc7.patch
gcc7.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/gcc7.patch b/gcc7.patch
new file mode 100644
index 0000000..349d314
--- /dev/null
+++ b/gcc7.patch
@@ -0,0 +1,20 @@
+--- ./src/scopes/audioscopes/spectrogram.cpp.orig 2017-06-12 01:07:02.501917132 +0100
++++ ./src/scopes/audioscopes/spectrogram.cpp 2017-06-12 01:09:41.261714228 +0100
+@@ -241,7 +241,7 @@ QImage Spectrogram::renderHUD(uint)
+ x = leftDist + (m_innerScopeRect.width() - 1) * ((float)hz) /
m_freqMax;
+
+ // Hide text if it would overlap with the text drawn at the mouse
position
+- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs(x - (leftDist + mouseX + 20)) < (int) minDistX + 16
++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs((int)(x - (leftDist + mouseX + 20))) < (int) minDistX + 16
+ && mouseX < m_innerScopeRect.width() &&
mouseX >= 0;
+
+ if (x <= rightBorder) {
+@@ -268,7 +268,7 @@ QImage Spectrogram::renderHUD(uint)
+ }
+ // Draw the line at the very right (maximum frequency)
+ x = leftDist + m_innerScopeRect.width() - 1;
+- hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs(x - (leftDist + mouseX + 30)) < (int) minDistX
++ hideText = m_aTrackMouse->isChecked() && m_mouseWithinWidget
&& abs((int)(x - (leftDist + mouseX + 30))) < (int) minDistX
+ && mouseX < m_innerScopeRect.width() && mouseX
>= 0;
+ davinci.drawLine(x, topDist, x, topDist + m_innerScopeRect.height() + 6);
+ if (!hideText) {