Editor/Plugins/EditorCommon

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-07-14 09:34:56 -07:00
parent 35ea178e3c
commit 87ca863ed4
13 changed files with 5 additions and 46 deletions
@@ -6,7 +6,6 @@
*/
#include "EditorCommon_precompiled.h"
#include "Ruler.h"
#include <QPainter>
@@ -43,7 +42,7 @@ namespace DrawingPrimitives
const float ticksMinPower = log10f(RULER_MIN_PIXELS_PER_TICK);
const float ticksPowerDelta = ticksMinPower - log10f(pixelsPerUnit);
const int digitsAfterPoint = max(-int(ceil(ticksPowerDelta)) - 1, 0);
const int digitsAfterPoint = AZStd::max(-int(ceil(ticksPowerDelta)) - 1, 0);
if (pRulerPrecision)
{
*pRulerPrecision = digitsAfterPoint;
@@ -6,7 +6,6 @@
*/
#include "EditorCommon_precompiled.h"
#include "TimeSlider.h"
#include <QPainter>