Skip to content

ui.monitors api updates#279

Open
Nordic87 wants to merge 1 commit into
samyeyo:masterfrom
Nordic87:monitor-api
Open

ui.monitors api updates#279
Nordic87 wants to merge 1 commit into
samyeyo:masterfrom
Nordic87:monitor-api

Conversation

@Nordic87

Copy link
Copy Markdown

Fixed issue with width and height of monitors in a multi-monitor setup, and also added some more very useful information when working with Windows monitor-API.

Issue with width and height: Monitors right, and bottom parameters will only tell you the width and height of the monitor, IF the monitor is the primary one, and I belive that DPI scaling also effects this. This has been changed to grab the actual resolution from EnumDisplaySettingsW.

New parameters:

  • device - A string representing the device "path"
  • colorDepth - Integer representing bits per pixel
  • refreshRate - Integer representing the monitors refresh rate
  • orientation - Integer representing the orientation/degrees of rotation 0/90/180/270 (equal to how Windows handles orientation)
  • monitorArea - table containing position and size of the rectangle assigned to the monitor in Windows virtual workspace
  • workArea - Same as monitorArea, but it accounts for things like the taskbar

… and added more usefull monitor information to the api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant