-
Notifications
You must be signed in to change notification settings - Fork 8
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
HiDPI support #5
Comments
See pthom/imgui_bundle#7 (comment) for python code for handling dragging between differen monitors. Same logic would apply in C++ (but be simpler to implement) |
And last note: I'm happy to test anything you implement (I have a setup with two screens with different DPI), using the Windows build artefacts. |
Added some code to handle this. What about case if window is partially in one monitor and in another monitor? |
There is no right solution to that case as far as i am aware. My example
code (that i posted at the link above) determines with which monitor the
window has most overlap and sets the window's scaling to that monitor's.
This seems to be similar to what Microsoft programs here on Windows do.
Will test your new code today or tomorrow.
…On Tue, Nov 1, 2022 at 12:25 PM Paul B Mahol ***@***.***> wrote:
Added some code to handle this. What about case if window is partially in
one monitor and in another monitor?
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANUOGMDY7BSN6YMBSTK5CTWGD437ANCNFSM6AAAAAARS7CKWQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Works, stuff is nicely scaled now :)
On Tue, Nov 1, 2022 at 1:21 PM Diederick C. Niehorster ***@***.***>
wrote:
… There is no right solution to that case as far as i am aware. My example
code (that i posted at the link above) determines with which monitor the
window has most overlap and sets the window's scaling to that monitor's.
This seems to be similar to what Microsoft programs here on Windows do.
Will test your new code today or tomorrow.
On Tue, Nov 1, 2022 at 12:25 PM Paul B Mahol ***@***.***>
wrote:
> Added some code to handle this. What about case if window is partially in
> one monitor and in another monitor?
>
> —
> Reply to this email directly, view it on GitHub
> <#5 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AANUOGMDY7BSN6YMBSTK5CTWGD437ANCNFSM6AAAAAARS7CKWQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I'm using a hidpi screen and lavfi-preview is not hidpi aware (I'm using Windows 10). That means everything is super small. In my own imgui+glfw c++ program, I handle this as follows, feel free to copy and adapt in case you'd like to fix this:
This of course does not handle the case of dragging the gui between screens with different dpi, but its something at least.
The text was updated successfully, but these errors were encountered: