From 2c4a6174f96a6ed6924a85dbbad36c7888b69527 Mon Sep 17 00:00:00 2001 From: Gabor Papp Date: Tue, 27 Jan 2026 12:34:51 +0100 Subject: [PATCH] Fix GLFW DPI scale when high-density framebuffers are disabled --- src/cinder/app/glfw/WindowImplGlfw.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cinder/app/glfw/WindowImplGlfw.cpp b/src/cinder/app/glfw/WindowImplGlfw.cpp index 501d95b4f7..12cc32b331 100644 --- a/src/cinder/app/glfw/WindowImplGlfw.cpp +++ b/src/cinder/app/glfw/WindowImplGlfw.cpp @@ -197,6 +197,10 @@ void WindowImplGlfw::show() float WindowImplGlfw::getContentScale() const { + if( ! mAppImpl->getApp()->isHighDensityDisplayEnabled() ) { + return 1.0f; + } + float xscale = 1.0f, yscale = 1.0f; ::glfwGetWindowContentScale( mGlfwWindow, &xscale, &yscale ); // Return the larger of the two scales (they should typically be the same)