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 10 main viewport and mouse issues in fullscreen mode #6366

Closed
DorpsGek opened this issue Aug 24, 2015 · 6 comments
Closed

Windows 10 main viewport and mouse issues in fullscreen mode #6366

DorpsGek opened this issue Aug 24, 2015 · 6 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Samu opened the ticket and wrote:

Hi. I recently upgraded to Windows 10, from Windows 7. There are two major issues I found out right away.

  1. Right clicking to drag the viewport is very unresponsive, it doesn't pan the screen at ease, it's stuttering, like there's some grip to it. This happens in both fullscreen mode and in windowed mode.

  2. When running the game in fullscreen mode, I don't have access to the toolbars at the top and the bottom of the screen, it looks like the viewport is confined to the inner center. Mouse cursor can only interact inside that confinement.

I attach two screenshots to better explain what is happening with point 2:
- The first one is taken from the in-game tool using Ctrl-S. It does not reflect what I see on my display.
- The other is what I really see, some kind of inner window confining the mouse and anything I can interact.

Attachments

Reported version: 1.5.2-RC1
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/6366
@DorpsGek
Copy link
Member Author

Samu wrote:

I solved both problems. It was a compatibility problem.

- Right click OpenTTD shortcut, left click Properties
- Left click Compatibility tab
- Check Disable display scaling on high DPI settings
- Click OK

Now it scrolls fine, no more stuttering, and I can access the building tools in fullscreen mode.

May I suggest when installing the game on Windows 10, to create a shortcut with "Disable display scaling on high DPI settings" checked? Is it feasible?

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366#comment14051

@DorpsGek
Copy link
Member Author

coyoteelabs wrote:

Wouldn't the problem be better solved by marking OpenTTD as "Dpi Aware"? The automatic scaling is because Windows sees the game as non-dpi aware and scales it. Adding a manifest file that specifies the game is dpi aware should stop Windows from applying the dpi scaling so the workaround with the compatibility tab should no longer be needed.

Microsoft has instructions and a manifest example here: https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266%28v=vs.85%29.aspx# declaring_dpi_awareness


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366#comment14107

@DorpsGek
Copy link
Member Author

Samu wrote:

This works for me, tested it on Windows 10 with a 125% scaling and OpenTTD 1.6.0-RC1.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366#comment14136

@DorpsGek
Copy link
Member Author

Samu wrote:

Uploading a better patch, for all builds. And uploading a video displaying 640x480 side by side with version nightly r27540 and patched r27540 trunk.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366#comment14156

@DorpsGek
Copy link
Member Author

michi_cc closed the ticket.

Reason for closing: Implemented

In r27790 and r27791.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366

@DorpsGek
Copy link
Member Author

Metebacsi wrote:

On Windows 7 Home Premium SP1 the options on the compatibility tab are grayed out for changing the display scaling settings. I see that Ricardo got a patch that fixed for windows 10, is there a way to get it fixed for both operating systems? ^^
For me currently the scrolling and map panning are barely functional ^^


This comment was imported from FlySpray: https://bugs.openttd.org/task/6366#comment14817

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant