mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-04 14:48:37 +00:00
fix: fabs build error
This commit is contained in:
parent
df4ff74cc4
commit
d9800da5f9
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include <QResizeEvent>
|
#include <QResizeEvent>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include "keepradiowidget.h"
|
#include "keepradiowidget.h"
|
||||||
|
|
||||||
|
@ -24,7 +25,7 @@ void KeepRadioWidget::setWidget(QWidget *w)
|
||||||
|
|
||||||
void KeepRadioWidget::setWidthHeightRadio(float widthHeightRadio)
|
void KeepRadioWidget::setWidthHeightRadio(float widthHeightRadio)
|
||||||
{
|
{
|
||||||
if (fabs(m_widthHeightRadio - widthHeightRadio) < 0.000001f) {
|
if (abs(m_widthHeightRadio - widthHeightRadio) < 0.000001f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_widthHeightRadio = widthHeightRadio;
|
m_widthHeightRadio = widthHeightRadio;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue