mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Closed beta 10002002: testin OS X build by GYP.
This commit is contained in:
@@ -24,6 +24,7 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||
#include <vector>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QtMath>
|
||||
|
||||
namespace codegen {
|
||||
namespace style {
|
||||
@@ -78,7 +79,7 @@ inline int pxAdjust(int value, int scale) {
|
||||
if (value < 0) {
|
||||
return -pxAdjust(-value, scale);
|
||||
}
|
||||
return static_cast<int>(std::floor((value * scale / 4.) + 0.1));
|
||||
return qFloor((value * scale / 4.) + 0.1);
|
||||
}
|
||||
|
||||
struct point {
|
||||
|
Reference in New Issue
Block a user