2
0
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:
John Preston
2016-09-02 01:27:54 -04:00
parent 58f0dbe2a4
commit 07dffb948d
11 changed files with 28 additions and 27 deletions

View File

@@ -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 {