mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 00:03:45 +00:00
Set default dpi to 96, if it can't be determined.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -113,7 +113,7 @@ function monitorinfo()
|
|||||||
this._monitorinfo.callback.on('GlobalCallback', function OnMonitorInfo(hmon, hdc, r, user) {
|
this._monitorinfo.callback.on('GlobalCallback', function OnMonitorInfo(hmon, hdc, r, user) {
|
||||||
if (this.ObjectToPtr_Verify(this.info, user))
|
if (this.ObjectToPtr_Verify(this.info, user))
|
||||||
{
|
{
|
||||||
var dpi = null;
|
var dpi = 96;
|
||||||
var sh = require('monitor-info')._shcore;
|
var sh = require('monitor-info')._shcore;
|
||||||
if (sh != null)
|
if (sh != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user