-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
[bug] MasterWindow.GetSize() is wrong on Linux when text scaling is not 1.0 #489
Comments
Must be a platform issue then. It's 100% reproducible on my Linux Mint 20 Cinnamon, which is based on Ubuntu 20.04. I'm currently using the nouveau drivers. Here is some raw system info:
|
It's the text scaling factor. If I set it to 1.0 the window size is as requested. How do I take this into account when saving and loading the window size? Is there a way to access the scaling factor and/or should this be fixed in Giu? |
I suppose it is something about glfw as window sizes are handled by it |
this issue has about 2 years now, and since this time we've changed much. Especially We've updated to cimgui-go. Could someone check if this still is a problem on v0.8.1? |
What happend?
When I make a MasterWindow with width 1024 and height 800, after creating the window
MasterWindow.GetSize()
returns width 1228 and height 959. The actual size is 1024, 800 however, since in my code the sizes are saved and loaded as preferences and the window grows every time the application is started. Minimal sample included below. Tested on Linux Mint 20.Code example
main.go
To Reproduce
Version
master
OS
Linux Mint 20.3 Cinnamom
The text was updated successfully, but these errors were encountered: