mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -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 =
|
||||
{
|
||||
QString("ATV Demodulator"),
|
||||
QString("3.8.0"),
|
||||
QString("3.8.2"),
|
||||
QString("(c) F4HKW for F4EXB / SDRAngel"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
|
@ -1037,7 +1037,7 @@ void ATVMod::mixImageAndText(cv::Mat& image)
|
||||
int thickness = image.cols / 160;
|
||||
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);
|
||||
baseline += thickness;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user