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

Add dpiScale to WindowInfo object #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lmachens
Copy link
Contributor

Calling overwolf.windows.getCurrentWindow returns dpiScale which is updated based on current scaling.

Example:

{
  "window": {
    "id": "Window_Extension_lbkdbgdijedpnmifplbkcjgbioaklmpghbehfmnp_desktop",
    "name": "desktop",
    "width": 400,
    "height": 660,
    "top": 200,
    "left": 3040,
    "isVisible": true,
    "logicalBounds": {
      "top": 200,
      "left": 3040,
      "width": 400,
      "height": 660
    },
    "state": "Normal",
    "dpiScale": 1,
    "stateEx": "normal",
    "monitorId": "\\\\.\\DISPLAY1",
    "type": "Desktop"
  },
  "status": "success",
  "success": true
}

Related to overwolf/overwolf.github.io#1018

@OdedItkinOW
Copy link
Collaborator

As mentioned in the other pull request - this will be merged properly at a later date, to stay in sync with the dev site. Will update here once that's ready

@sebastientromp
Copy link

Do you have any update on this?

@OdedItkinOW
Copy link
Collaborator

Not currently. The main reason being that we have recently located some potential inconsistencies involving DPI, and so we want to iron them all out before updating the docs and types, to ensure that they are correct

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.

None yet

3 participants