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

Windows' UI scale still causes problems w/ WinForms #1930

Open
Liger0 opened this issue Apr 13, 2020 · 7 comments
Open

Windows' UI scale still causes problems w/ WinForms #1930

Liger0 opened this issue Apr 13, 2020 · 7 comments
Labels
App: EmuHawk Relating to EmuHawk frontend Repro: Affects 2.4.1

Comments

@Liger0
Copy link

Liger0 commented Apr 13, 2020

Summary

The dialog windows shown in the screenshots are not behaving correctly.
On the display configuration, the right side is cut.
On the toolbox window, it is too small so it doesn't display correctly all the icons, but what's worse is that the reduce icon is upon the program icon so there is no space at all to drag the window and move it.

Host env.

  • BizHawk dev build at 28bc772; Win10 Home 1909; AMD Rx vega 56

screen
toolbox

@YoshiRulz YoshiRulz added App: EmuHawk Relating to EmuHawk frontend Repro: Affects 2.4.1 labels Apr 13, 2020
@YoshiRulz
Copy link
Member

CNR the three columns in the Scaling and Filtering tab (that's what's really happening, it's supposed to be two). I could reproduce the Tool Box' window decorations being too small, but my second row of icons is fully visible. Have you set Windows' UI scale to something other than 1x? That would explain why it's only affecting you.

(For the record, you can still move the toolbox by right-clicking the window decorations, choosing Move, and dragging the window decorations.)

@Liger0
Copy link
Author

Liger0 commented Apr 13, 2020

Yes I have the UI scale to 125% because the fonts are too small to be visible otherwise (in windows, generally), so I can't scale down to 100%.

@YoshiRulz
Copy link
Member

In that case, it's a known bug where WinForms doesn't play nice with UI scale. The Tool Box already has the auto-scale code and it clearly doesn't help. I guess this issue can replace the old one (#353).

@YoshiRulz YoshiRulz changed the title GUI size issues Windows' UI scale still causes problems w/ WinForms Apr 13, 2020
@YoshiRulz
Copy link
Member

YoshiRulz commented Apr 14, 2020

@Liger0 zeromus would like you to try 3b86bd7 ^, which just replaces the Display Configuration dialog with an older revision.

@Liger0
Copy link
Author

Liger0 commented Apr 14, 2020

Yes, the display configuration now displays correctly (altough the font is very small and I have a hard time reading it). The toolbox, of course, is still the same.

@YoshiRulz
Copy link
Member

If we're still using WinForms in the future, we could look into setting AutoScaleMode = AutoScaleMode.Dpi on every Form.

@Deakula
Copy link

Deakula commented Sep 13, 2023

Cross post of my reply on the referenced issue:

As far as I can tell, this issue is still present in version 2.9.1

I have a 3 monitor setup in Windows 11. Two of those monitors are set to a resolution of 1920x1080, and the main monitor is set to a resolution of 3840x2160. Regardless of the Windows scale setting for the two 1920x1080 monitors, I observe 3 different behaviors when opening BizHawk on my main 4K monitor:

  1. When BizHawk is opened on the 4K monitor and Windows scaling is set to 100%, BizHawk, tools such as TAStudio, and all Lua forms display as expected (albeit too small to be usable with a large 4K display at 100% scaling).
    Scale 100
    TAStudio 100
  2. When the Windows scaling of the 4K monitor is changed to anything but 100% (eg. 200%) after BizHawk was already opened with Windows scaling set to 100%, BizHawk, tools such as TAStudio, and all Lua forms continue to display correctly (albeit improperly scaled up causing some elements to appear blurry). This is expected behavior as many apps need to be restarted to properly respond to a scale change in Windows.
    Scale 200 after 100
    TAStudio 200 after 100
  3. When BizHawk is opened on the 4K monitor while the scaling is set to anything but 100% (eg. 200%), some BizHawk GUI text (eg. FPS), tools such as TAStudio, and all Lua forms are not displayed correctly. Lua forms in particular have incorrect proportions for drawn elements, and elements such as buttons and labels get squished and have their text cut off. In tools like TAStudio, some portions of the UI are also cut off.
    Scale 200
    TAStudio 200
    Lua + WinForms + High DPI #2604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: EmuHawk Relating to EmuHawk frontend Repro: Affects 2.4.1
Projects
None yet
Development

No branches or pull requests

3 participants