onGameInfoUpdated returns resolutionChanged = true when game window is minimized

I play Hearthstone in windowed mode, and when I minimize the window, onGameInfoUpdated sends a new event with resolutionChanged set to true.

For info, this is the event data right after minimizing the game:

{
    "isInFocus": false,
    "isRunning": true,
    "allowsVideoCapture": true,
    "title": "Hearthstone: Heroes of Warcraft",
    "displayName": "Hearthstone",
    "shortTitle": "",
    "id": 98981,
    "classId": 9898,
    "width": 1842,
    "height": 1057,
    "logicalWidth": 1842,
    "logicalHeight": 1057,
    "renderers": [
        "D3D9",
        "D3D11",
        "OGL"
    ],
    "detectedRenderer": "D3D11",
    "executionPath": "D:/Games/Hearthstone/Hearthstone.exe",
    "sessionId": "d2fbb363dba949e48ced2ac7eae52b4b",
    "commandLine": "\"D:/Games/Hearthstone/Hearthstone.exe\" -launch -uid hs_beta",
    "type": 0,
    "typeAsString": "Game",
    "windowHandle": {
        "value": 5314760
    },
    "monitorHandle": {
        "value": 65537
    }
}

And this is what it looks like right after restoring the game window:

{
    "gameInfo": {
        "isInFocus": true,
        "isRunning": true,
        "allowsVideoCapture": true,
        "title": "Hearthstone: Heroes of Warcraft",
        "displayName": "Hearthstone",
        "shortTitle": "",
        "id": 98981,
        "classId": 9898,
        "width": 1842,
        "height": 1057,
        "logicalWidth": 1842,
        "logicalHeight": 1057,
        "renderers": [
            "D3D9",
            "D3D11",
            "OGL"
        ],
        "detectedRenderer": "D3D11",
        "executionPath": "D:/Games/Hearthstone/Hearthstone.exe",
        "sessionId": "d2fbb363dba949e48ced2ac7eae52b4b",
        "commandLine": "\"D:/Games/Hearthstone/Hearthstone.exe\" -launch -uid hs_beta",
        "type": 0,
        "typeAsString": "Game",
        "windowHandle": {
            "value": 5314760
        },
        "monitorHandle": {
            "value": 65537
        }
    },
    "resolutionChanged": true,
    "focusChanged": false,
    "runningChanged": false,
    "gameChanged": false
}

As you can see, the width and height values are the same in both cases, so it looks weird to send a resolutionChanged event in this case.

Thanks!

Hi,

Thanks for the info. I’m not sure if it’s an issue. I think it’s by design. But definitely, this design seems od a little bit. I assume that it might be related to the fact that while you minimize it, the window size is changed and animated, and that might be interpreted as a resolution changed.
I will check it further, but I want first to understand if it’s an issue/problem for your app?

Thanks.

It’s a small issue that causes some flickering of the app when it’s brought back from a minimized state (as I reposition some elements when the resolution is changed).
Thinking about it, I might add some manual checks against the game height and width and only perform my changes if these have changes.

So overall: would be good if this could be “fixed”, otherwise I’ll manage

@sebastientromp sorry for the late response. I discussed that with the team. We will put it on the checklist but on low priority. So it’s great that you have a workaround.

With your permission, I will close this ticket for now.

Thanks,
Eran

Can someone help me im knew