Skip to content

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
Contributor

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
Contributor

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.

3 participants