summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Render/StudioScaleWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Studio/Render/StudioScaleWidget.cpp')
-rw-r--r--src/Authoring/Studio/Render/StudioScaleWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Render/StudioScaleWidget.cpp b/src/Authoring/Studio/Render/StudioScaleWidget.cpp
index 37fe20ec..9b5eec1f 100644
--- a/src/Authoring/Studio/Render/StudioScaleWidget.cpp
+++ b/src/Authoring/Studio/Render/StudioScaleWidget.cpp
@@ -149,7 +149,7 @@ struct SScaleWidget : public SStudioWidgetImpl<StudioWidgetTypes::Scale>
inRenderContext.SetDepthWriteEnabled(true);
inRenderContext.SetDepthTestEnabled(true);
inRenderContext.Clear(qt3ds::render::NVRenderClearValues::Depth);
- float pixelRatio = float(devicePixelRatio());
+ float pixelRatio = float(StudioUtils::devicePixelRatio());
QT3DSF32 axisWidth = pixelRatio;
QT3DSF32 triWidth = 3 * CStudioPreferences::getSelectorLineWidth() * pixelRatio;
QT3DSF32 axisStart = CStudioPreferences::getSelectorLineLength() / 3.0f * pixelRatio;