diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aa5cb0..aee953d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.9.9 | 2021-10-27 | `graphics` fixed screen resolution issue (windows) | | 5.9.8 | 2021-10-22 | `wmic` fixed code page issues (windows) | | 5.9.7 | 2021-10-09 | `battery()` fixed typo seperator (windows) | | 5.9.6 | 2021-10-08 | `system()` fixed virtual on WSL2 | diff --git a/docs/history.html b/docs/history.html index bb9a66e..2b3f902 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.9.9 + 2021-10-27 + graphics fixed screen resolution issue (windows) + 5.9.8 2021-10-22 diff --git a/docs/index.html b/docs/index.html index 5397d34..e72a1d0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.9.8
+
New Version: 5.9.9
diff --git a/lib/graphics.js b/lib/graphics.js index bb99f82..f95f020 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -1005,7 +1005,7 @@ function graphics(callback) { let linesConnection = tsections[i].split('\n'); const bitsPerPixel = util.getValue(linesScreen, 'BitsPerPixel'); - const bounds = util.getValue(linesScreen, 'Bounds').replace('{', '').replace('}', '').split(','); + const bounds = util.getValue(linesScreen, 'Bounds').replace('{', '').replace('}', '').replace(/=/g, ':').split(','); const primary = util.getValue(linesScreen, 'Primary'); const sizeX = util.getValue(linesMonitor, 'MaxHorizontalImageSize'); const sizeY = util.getValue(linesMonitor, 'MaxVerticalImageSize');