Skip to content

Commit 48b16b7

Browse files
gaborpappandrewfb
authored andcommitted
Fix GLFW DPI scale when high-density framebuffers are disabled
1 parent 8483867 commit 48b16b7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/cinder/app/glfw/WindowImplGlfw.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ void WindowImplGlfw::show()
197197

198198
float WindowImplGlfw::getContentScale() const
199199
{
200+
if( ! mAppImpl->getApp()->isHighDensityDisplayEnabled() ) {
201+
return 1.0f;
202+
}
203+
200204
float xscale = 1.0f, yscale = 1.0f;
201205
::glfwGetWindowContentScale( mGlfwWindow, &xscale, &yscale );
202206
// Return the larger of the two scales (they should typically be the same)

0 commit comments

Comments
 (0)