From faec332e359886027592a2b301f86dbebe2eaefc Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 30 May 2021 00:39:04 +0100 Subject: [PATCH] Add getScaleFactor to StandaloneWindow Signed-off-by: falkTX --- dgl/StandaloneWindow.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dgl/StandaloneWindow.hpp b/dgl/StandaloneWindow.hpp index 5f2d553d..d34470c2 100644 --- a/dgl/StandaloneWindow.hpp +++ b/dgl/StandaloneWindow.hpp @@ -61,6 +61,7 @@ public: { return Window::addIdleCallback(callback, timerFrequencyInMs); } bool removeIdleCallback(IdleCallback* callback) { return Window::removeIdleCallback(callback); } const GraphicsContext& getGraphicsContext() const noexcept { return Window::getGraphicsContext(); } + double getScaleFactor() const noexcept { return Window::getScaleFactor(); } void setGeometryConstraints(uint minimumWidth, uint minimumHeight, bool keepAspectRatio = false, bool automaticallyScale = false) { Window::setGeometryConstraints(minimumWidth, minimumHeight, keepAspectRatio, automaticallyScale); }