commit faec332e359886027592a2b301f86dbebe2eaefc
parent add9eed8c0313a54337459b46b76a35a0359811d
Author: falkTX <falktx@falktx.com>
Date: Sun, 30 May 2021 00:38:37 +0100
Add getScaleFactor to StandaloneWindow
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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); }