mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 09:06:32 +02:00
attempt at resolving build warnings
make both values operated on double before casting
This commit is contained in:
parent
a4775983a2
commit
b5d50e8b3f
1 changed files with 0 additions and 2 deletions
|
@ -26,9 +26,7 @@ void TouchscreenDevice::pluginUpdate(float deltaTime, const controller::InputCal
|
|||
_inputDevice->update(deltaTime, inputCalibrationData, jointsCaptured);
|
||||
|
||||
// at DPI 100 use these arbitrary values to divide dragging distance
|
||||
static const float DPI_SCALE_X = glm::clamp((float)(qApp->primaryScreen()->physicalDotsPerInchX() / 100.0f), 1.0f, 10.0f)
|
||||
* 600.0f;
|
||||
static const float DPI_SCALE_Y = glm::clamp((float)(qApp->primaryScreen()->physicalDotsPerInchY() / 100.0f), 1.0f, 10.0f)
|
||||
* 200.0f;
|
||||
|
||||
float distanceScaleX, distanceScaleY;
|
||||
|
|
Loading…
Reference in a new issue