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

Screen Scaling on High DPI problem... #700

Closed
IPeluchito opened this issue Sep 10, 2020 · 6 comments
Closed

Screen Scaling on High DPI problem... #700

IPeluchito opened this issue Sep 10, 2020 · 6 comments

Comments

@IPeluchito
Copy link

I just discovered that the emulator has a problem with high resolution screen scaling in Windows 8.1 at 3840 x 2160 and 250% scaling ... I leave screenshot comparing how it looks by default (LEFT) and disabling screen scaling on high DPI settings (RIGHT)

86983966-e6b01580-c152-11ea-8123-d9b7e404781d

@thrust26
Copy link
Member

@DirtyHairy @sa666666 Can you verify this? I have no such display.

@IPeluchito If I get you right the scaling is done by the OS (Windows). What do you expect from Stella here? AFAIK Stella cannot prevent Windows from scaling. Or am I missing something?

Also, is the screenshot on the left done by Windows (ALT+Print) or by Stella (F12)?

@DirtyHairy
Copy link
Member

Scaling on MacOS is crisp as Stella runs in "retina-native" mode there. I have no idea whether an equivalent exists on windows or how to use it.

@SpiceWare
Copy link
Contributor

SpiceWare commented Oct 5, 2020

At work I added HiDPI support to our applications back in 2012. I don't recall specifics, but I had to add a manifest file as specified here:
https://docs.microsoft.com/en-us/windows/win32/direct2d/how-to--size-a-window-properly-for-high-dpi-displays

Note: that's from 2018 so not where I originally found the info, but the manifest matches

In 2017 I updated the manifest because we ran into an issue with Windows 10 reporting X scaling values differently than the prior versions of Windows. Basically earlier versions of Windows used 133% scaling for X if you had selected 125%. The update adds the ability to detect Windows 10, without the update Windows 10 is detected as Windows 8.

The zip contains the manifest with Windows 10 updates, a screenshot of were to add the manifest, and adjust functions that differentiate between Windows 10 and prior.

DPI.zip

@sa666666
Copy link
Member

sa666666 commented Oct 5, 2020

@SpiceWare, thanks for the info. We plan to release version 6.3 later this week, so it's too late in the release cycle to get to this. But assuming this is the issue, we can address it in 6.3.1.

@sa666666 sa666666 self-assigned this Oct 5, 2020
@sa666666 sa666666 added this to the Prio 2 milestone Oct 5, 2020
@sa666666 sa666666 added the target 6.4 2020-11 Release label Oct 5, 2020
@thrust26 thrust26 added target 6.5 New Year 2021 Release and removed target 6.4 2020-11 Release labels Nov 1, 2020
@sa666666 sa666666 added target 6.6 2021-11 Release and removed target 6.5 New Year 2021 Release labels Nov 30, 2020
@thrust26
Copy link
Member

thrust26 commented Feb 18, 2022

@IPeluchito Is this still still an issue with Stella?

Currently SDL does not support High DPI for Windows (unlike MacOS), but there is a workaround. You can define a High DPI override for the executable. Open the properties for Stella.exe, select Compatibility/High DPI scaling override and set to 'Application'.
image
image

125% scaling without override:
image

125% scaling with override:
image

I seems that you have to do that override only once. And not have to repeat this with each new Stella version.

@thrust26 thrust26 added target 6.7 and removed target 6.6 2021-11 Release labels Feb 18, 2022
@thrust26
Copy link
Member

No feedback, seems to be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants