lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master cd8433ad 4/8: Enable per-monitor DPI awarenes


From: Greg Chicares
Subject: [lmi-commits] [lmi] master cd8433ad 4/8: Enable per-monitor DPI awareness for lmi
Date: Thu, 30 Jun 2022 11:14:15 -0400 (EDT)

branch: master
commit cd8433ad189ac355a8b40431d0bad466d0a2fd8e
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Enable per-monitor DPI awareness for lmi
    
    This is required to opt-out from system scaling, which simply doubles
    all pixels drawn by the application on high DPI (i.e. 200% scaling)
    monitors, resulting in everything being blurry, including both images
    and text.
---
 lmi_msw_res.rc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lmi_msw_res.rc b/lmi_msw_res.rc
index 9acb2fcb..ee25fb3d 100644
--- a/lmi_msw_res.rc
+++ b/lmi_msw_res.rc
@@ -29,6 +29,10 @@ AAAAAAAA ICON "lmi.ico"
 // binary. Other icons are treated the same way here, not because they
 // must be, but simply as a matter of consistency and convenience.
 
+// Request using the manifest enabling per-monitor DPI awareness in wx.rc, as
+// this application handles DPI scaling correctly.
+#define wxUSE_DPI_AWARE_MANIFEST 2
+
 // Get stock cursors etc. Unconventionally, write this #include
 // directive at the end of this file, to prevent any ICON statements
 // in the included file from preceding the application's icon--which



reply via email to

[Prev in Thread] Current Thread [Next in Thread]