-
Notifications
You must be signed in to change notification settings - Fork 7
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
Correct handling of DPI related information #4
Comments
@IvoWingelaar, @jice-nospam Indeed, I would prefer to discuss all these changes in issue page first and make it easy to track. On the other hand, Here is my two cents about DPI related issues:
I think it is okay in general, but how to handle multiple-monitor situation ? Of course currently unrust did not handle it, but for Native values we do not require to handle it (except UI). Or, How about we embed the DPI information in all these Logical values (e.g. a tuple / struct (x,y, w,h,dpi), or an enum which provide the information and conversion ) ?
This one is a little bit tricky. I would recommend us to provide a logical to native conversion utility, or as above mentioned, use an Enum to represent all DPI related information. |
I'm not quite sure what you mean with this, but if we drag a window from one screen (with DPI 1.0 for example) to another screen (with DPI 1.5), these values do not change. That's the entire reason why we want to use the
Is copying the two
All solutions we can implement are going to be hacks. Intercepting a DPI-change event and force resizing the window to the correct resolution will "flicker" the size for a single frame. It might actually be better to convince the |
It appears a similar discussion is already happening here. We should probably just wait for this to settle. |
Indeed, It is a great read. let's wait and see if it is settled. And i don't have a use-case either (i don't have a high-dpi monitor for windows testing), so if you have any idea, please let me know. |
Just peeking in, apparently |
@icefoxen Thanks. And just want to ask a related question, what is the plan of ggez to handle something like force_dpi flag feature (People want to use PhysicalSize instead of LogicalSize) ? I can see some games (e.g roguelike games) with need pixel perfect information. |
@icefoxen I assume it does nothing until you're fully inside the new monitor. You need exactly one physical size for It's a shame that I currently do not have a setup with which I can check this |
@edwin0cheng ggez's DPI discussion is happening here, it's nooooot 100% settled yet how it will work out. I intend to have a |
Continue discussion from #3
The text was updated successfully, but these errors were encountered: