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!