mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 00:18:37 -05:00
ATV Modulator: ensure minimum overlay text font size
This commit is contained in:
parent
cb9329e6de
commit
66e45e6638
@ -1133,6 +1133,7 @@ void ATVMod::mixImageAndText(cv::Mat& image)
|
|||||||
int thickness = image.cols / 160;
|
int thickness = image.cols / 160;
|
||||||
int baseline=0;
|
int baseline=0;
|
||||||
|
|
||||||
|
fontScale < 8.0f ? 8.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