-
Notifications
You must be signed in to change notification settings - Fork 399
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
Lua + WinForms + High DPI #2604
Comments
Seems very promising at 200% Windows Scaling setting on my 1440p monitor. Still some minor issues with checkbox labels but that might be on ScriptHawk's end? I'm not 100% sure, would have to look into it. @retrobenny would you be willing to test this build for us on your 4K screen? |
I will try to remember to get the build and check how it behaves on my 4K screen some time soon,I already had just turned off my PC and its late into the early morning now before I saw this,I was messing with DK64 physics fixing on 60fps (in PJ64) with promising results and stayed on late. |
...how do I even grab the build on gitlab? >_> All I get in the zip is an xml file. Edit; Oh,I had to do something non-obvious and click into the rounded button part for build in pipeline instead of from jobs. |
My bad, I forgot the package step is only for Not sure why checkboxes would be behaving differently. IIRC the box part is drawn inside the padding, so it should use |
ScriptHawk users are starting to complain about the window Lua creates being too small on their 4K screens, with important text being cut off.
The bug report on ScriptHawk repo is here Isotarge/ScriptHawk#14
We have a root value called ScriptHawk.UI.button_height which scales almost everything on the form dynamically but bumping this value up for high DPI screens still has a number of issues.
As far as I know, there's currently no way to detect the DPI of the screen that we're running on from Lua.
Would it be feasible for BizHawk to transparently scale up the numbers that get passed to the Lua WinForms bindings based on DPI? Alternatively, could we turn on some flag in the form so that Windows does it for us?
The text was updated successfully, but these errors were encountered: