diff --git a/src/waveform/renderers/qopengl/fixedpointcalc.h b/src/waveform/renderers/qopengl/fixedpointcalc.h index 25e36e60ba0..99812a4bcc2 100644 --- a/src/waveform/renderers/qopengl/fixedpointcalc.h +++ b/src/waveform/renderers/qopengl/fixedpointcalc.h @@ -1,5 +1,7 @@ /// functions to do fixed point calculations, used by qopengl::WaveformRendererRGB +#include + // float to fixed point with 8 fractional bits, clipped at 4.0 inline uint32_t toFrac8(float x) { return std::min(static_cast(std::max(x, 0.f) * 256.f), 4 * 256); diff --git a/src/waveform/renderers/qopengl/waveformrendermark.cpp b/src/waveform/renderers/qopengl/waveformrendermark.cpp index be3978f58b4..18ecf07fb2d 100644 --- a/src/waveform/renderers/qopengl/waveformrendermark.cpp +++ b/src/waveform/renderers/qopengl/waveformrendermark.cpp @@ -2,6 +2,7 @@ #include #include +#include #include "control/controlobject.h" #include "engine/controls/cuecontrol.h"