Skip to content

Mouse coordinates are translated incorrectly when window is not in 16:9 #136

Description

@bldhf

If the game window is put it any ratio other than 16:9 (in my case, it happened because I was in fullscreen on a 3:2 monitor, but I can also replicate it by just...changing the window size normally), mouse coordinates do not get translated correctly to game coordinates when selecting objects in debug. In particular, it seems that it's acting as if the gameplay area were upper left aligned rather than center aligned, so a tall window will result in having to click above an object, and a wide window will result in having to click to the left of an object.

celestetas.mp4

P.S. I may be stupid; for some reason I thought this was the wrong repo and closed the previous issue I made.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions