Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically changing HiDPI awareness does not trigger content callback #2

Closed
ypujante opened this issue May 27, 2024 · 0 comments · Fixed by emscripten-core/emscripten#22038
Labels
bug Something isn't working

Comments

@ypujante
Copy link
Member

Steps to reproduce:

// 1. set a window content scale callback
  glfwSetWindowContentScaleCallback(fWindow, callbacks::onContentScaleChange);

// here we assume content scale is 2.0

// 2. change HiDPI awareness
  glfwSetWindowAttrib(fWindow, GLFW_SCALE_FRAMEBUFFER,  GLFW_FALSE);

// here content scale is 1.0 but callback is not called

The callback is not called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant