Skip to content

In "Fullscreen upscaling" mode with aspect ratio keps, cursor lock bounds don't work correctly. #440

@Clockware

Description

@Clockware

Version = 7.1+
Game = Space Rangers I (probably doesn't matter, seems like generic bug to me)

Options used: (starting from Reset)

  • Fullscreen upscaling [SELECT]
  • Maintain aspect ratio = ON

Why this preference: Fullscreen upscaling mode allows for fast alt-tabbing (which is important to be able to actually do something in parallel), and this is something that WineD3D can't do. Aspect ratio is kept for visual consistency.

When I try to run the game, I observe that cursor lock borders are not implemented correctly. In the game, cursor seems to be bound on rectangle which is 1/3 of the screen "righter" from rendered screen.

  • cursor can't reach the left edge of the rendered screen, stopping roughly at 1/3 of visible rendered screen
  • goes out of bounds on the right edge of the rendered screen

At this point, game draws 1024x768 while screen is 1920x1080.

Then, if you disable the cursor lock (Cursor LOCK = OFF), it goes of bounds both on the right and the bottom, while left/up seem to be okay. But this is not working, because for the game it is important for cursor to be able to stay at the end of the edge.

Temporary solution for me as of now:
Fullscreen upscaling + Maintain aspect ratio = OFF, and keep the cursor LOCK ON. Looks stretched, but works as expected.

So apparently (what the nature of the bug is) Fullscreen upscaling with keeping aspect ratio causes cursor bounds to be incorrectly calculated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions