1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

ATV modulator: better size text overlay

This commit is contained in:
f4exb 2017-11-07 02:00:54 +01:00
parent b0c1a99b6c
commit fabb5ea6ba
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
const PluginDescriptor ATVDemodPlugin::m_ptrPluginDescriptor = const PluginDescriptor ATVDemodPlugin::m_ptrPluginDescriptor =
{ {
QString("ATV Demodulator"), QString("ATV Demodulator"),
QString("3.8.0"), QString("3.8.2"),
QString("(c) F4HKW for F4EXB / SDRAngel"), QString("(c) F4HKW for F4EXB / SDRAngel"),
QString("https://github.com/f4exb/sdrangel"), QString("https://github.com/f4exb/sdrangel"),
true, true,

View File

@ -1037,7 +1037,7 @@ void ATVMod::mixImageAndText(cv::Mat& image)
int thickness = image.cols / 160; int thickness = image.cols / 160;
int baseline=0; int baseline=0;
fontScale = fontScale < 8.0f ? 8.0f : fontScale; // minimum size fontScale = fontScale < 4.0f ? 4.0f : fontScale; // minimum size
cv::Size textSize = cv::getTextSize(m_overlayText, fontFace, fontScale, thickness, &baseline); cv::Size textSize = cv::getTextSize(m_overlayText, fontFace, fontScale, thickness, &baseline);
baseline += thickness; baseline += thickness;