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:
parent
b0c1a99b6c
commit
fabb5ea6ba
@ -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,
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user