From 4a422b716870d2191a2b7792f8278c7dd62ec435 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 6 Jan 2023 11:35:42 +0100 Subject: [PATCH] graphics() positionX, positionY Ventura fix (max OS) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 4 ++-- docs/v4/index.html | 4 ++-- lib/graphics.js | 8 ++++---- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f580dda..b6324ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.17.1 | 2023-01-06 | `graphics()` positionX, positionY Ventura fix (max OS) | | 5.17.0 | 2023-01-06 | `graphics()` added positionX, positionY (max OS) | | 5.16.9 | 2022-12-27 | updated docs | | 5.16.8 | 2022-12-22 | `processes()` params truncated fix (max OS) | diff --git a/docs/history.html b/docs/history.html index f439996..6743b9e 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.17.1 + 2023-01-06 + graphics() positionX, positionY Ventura fix (max OS) + 5.17.0 2023-01-06 diff --git a/docs/index.html b/docs/index.html index 3d05e58..4e361d3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.17.0
+
New Version: 5.17.1
@@ -204,7 +204,7 @@
-
15,381
+
15,452
Lines of code
diff --git a/docs/v4/index.html b/docs/v4/index.html index db68bcf..2607a0f 100644 --- a/docs/v4/index.html +++ b/docs/v4/index.html @@ -188,7 +188,7 @@
Lightweight collection of 40+ functions to retrieve detailed hardware, system and OS information. For Linux, macOS, partial Windows, FreeBSD, OpenBSD, NetBSD, SunOS and Android support
NPM Version - deps status + no dependencies MIT license
Version 4 maintenance: We are still maintaining version 4 and providing especially fixes to security issues and other important fixes. New functionality is only added to the new version 5, so please consider upgrading to version 5 soon. Version 5 is NOT fully backward compatible to version 4! Be aware, there are some breaking changes. Please refer to the Version 5 - Changes page to see a full documentation of all changes you should have a look on.
@@ -369,4 +369,4 @@ - \ No newline at end of file + diff --git a/lib/graphics.js b/lib/graphics.js index 5fdb5bf..5d2b51f 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -689,11 +689,11 @@ function graphics(callback) { const current = obj['DisplayAnyUserSets'][0]; let i = 0; current.forEach((o) => { - if ('LimitsOriginX' in o && result.displays && result.displays[i]) { - result.displays[i].positionX = o['LimitsOriginX']; + if ('OriginX' in o && result.displays && result.displays[i]) { + result.displays[i].positionX = o['OriginX']; } - if ('LimitsOriginY' in o && result.displays && result.displays[i]) { - result.displays[i].positionY = o['LimitsOriginY']; + if ('OriginY' in o && result.displays && result.displays[i]) { + result.displays[i].positionY = o['OriginY']; } if (o['Mode'] && 'BitsPerPixel' in o['Mode'] && result.displays && result.displays[i]) { result.displays[i].pixelDepth = o['Mode']['BitsPerPixel'];