graphics() fallback display detection (windows)
This commit is contained in:
parent
85fa8fb074
commit
0ccc0abc38
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.14.15 | 2019-10-18 | `graphics()` fallback display detection (windows) |
|
||||
| 4.14.14 | 2019-10-18 | `powerShell()` fixed error handling (windows) |
|
||||
| 4.14.13 | 2019-10-15 | `networkConnections()` fixed parsing (linux) |
|
||||
| 4.14.12 | 2019-10-14 | `getCpu()` fixed multi socket detection (linux) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.14.15</th>
|
||||
<td>2019-10-18</td>
|
||||
<td><span class="code">graphics()</span> fallback display detection (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.14.14</th>
|
||||
<td>2019-10-18</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.14</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.15</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">
|
||||
|
||||
@ -687,6 +687,8 @@ function graphics(callback) {
|
||||
vendor = util.getValue(linesDisplay, 'MonitorManufacturer', '=');
|
||||
model = util.getValue(linesDisplay, 'Name', '=');
|
||||
deviceID = util.getValue(linesDisplay, 'PNPDeviceID', '=').replace(/&/g, '&').toLowerCase();
|
||||
resolutionx = parseInt((util.getValue(linesDisplay, 'ScreenWidth', '=') || '0'), 10);
|
||||
resolutionx = parseInt((util.getValue(linesDisplay, 'ScreenHeight', '=') || '0'), 10);
|
||||
}
|
||||
|
||||
for (let i = 0; i < ssections.length; i++) {
|
||||
@ -722,6 +724,22 @@ function graphics(callback) {
|
||||
});
|
||||
}
|
||||
}
|
||||
if (ssections.length === 0) {
|
||||
displays.push({
|
||||
vendor,
|
||||
model,
|
||||
main: true,
|
||||
resolutionx,
|
||||
resolutiony,
|
||||
sizex: -1,
|
||||
sizey: -1,
|
||||
pixeldepth: -1,
|
||||
currentResX: resolutionx,
|
||||
currentResY: resolutiony,
|
||||
positionX: 0,
|
||||
positionY: 0
|
||||
});
|
||||
}
|
||||
return displays;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user