mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +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 <cmath>
|
||||
|
||||
#include "keepradiowidget.h"
|
||||
|
||||
|
@ -24,7 +25,7 @@ void KeepRadioWidget::setWidget(QWidget *w)
|
|||
|
||||
void KeepRadioWidget::setWidthHeightRadio(float widthHeightRadio)
|
||||
{
|
||||
if (fabs(m_widthHeightRadio - widthHeightRadio) < 0.000001f) {
|
||||
if (abs(m_widthHeightRadio - widthHeightRadio) < 0.000001f) {
|
||||
return;
|
||||
}
|
||||
m_widthHeightRadio = widthHeightRadio;
|
||||
|
|
Loading…
Add table
Reference in a new issue