Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Zero values for non-primary displays on Windows #44

@Asmodai

Description

@Asmodai

My secondary display was showing a resolution of 0x1080 rather than 1920x1080, as it's to the left of the primary display (thus has a left value of -1920, and a right value of 0).

The fix is to simply compute the width and height of the display's rect and run it past abs to be ultra pedantic.

I have not tested this fix on all possible display configurations.

PR: #43

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions