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

display-width returns wrong value; likely window width #1496

Open
jsparkes opened this issue Aug 25, 2024 · 0 comments
Open

display-width returns wrong value; likely window width #1496

jsparkes opened this issue Aug 25, 2024 · 0 comments

Comments

@jsparkes
Copy link
Contributor

I'm trying to determine if I'm on a 4K monitor to set my font size larger.

(lem-sdl2/display:display-width (lem-sdl2/display:current-display)) returns 1400 no matter the monitor resolution. So does (lem-sdl2/display::display-window-width (lem-sdl2/display:current-display)) so I suspect they are calling the same SDL2 function. I peeked at the SDL2 code and it looked okay to me, so maybe the problems lies in the underlying library. Or perhaps a different surface needs to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant