graphics() fixed screen resolution issue (windows)

This commit is contained in:
Sebastian Hildebrandt 2021-10-27 22:03:44 +02:00
parent 6f63b1b02d
commit 5c5ecda955
4 changed files with 8 additions and 2 deletions

View File

@ -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 |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.9.9</th>
<td>2021-10-27</td>
<td><span class="code">graphics</span> fixed screen resolution issue (windows)</td>
</tr>
<tr>
<th scope="row">5.9.8</th>
<td>2021-10-22</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.9.8</span></div>
<div class="version">New Version: <span id="version">5.9.9</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -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');