[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 81d6173f: Warn if DPI scale factor vaticinate
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 81d6173f: Warn if DPI scale factor vaticinates failure with xvfb |
Date: |
Wed, 14 Sep 2022 18:10:42 -0400 (EDT) |
branch: master
commit 81d6173ffc6908c90ee25886165f4c2acae67709
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Warn if DPI scale factor vaticinates failure with xvfb
---
main_wx_test.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/main_wx_test.cpp b/main_wx_test.cpp
index af62ad7d..e90e6a2a 100644
--- a/main_wx_test.cpp
+++ b/main_wx_test.cpp
@@ -818,6 +818,18 @@ void SkeletonTest::RunTheTests()
return;
}
+ if(1.0 != MainWin->GetDPIScaleFactor())
+ {
+ // See:
+ // https://lists.nongnu.org/archive/html/lmi/2022-09/msg00000.html
+ // et seqq., as well as
+ // https://lists.nongnu.org/archive/html/lmi/2022-09/msg00017.html
+ std::cout
+ << "DPI scale factor is not unity, so tests may fail with xvfb"
+ << std::endl
+ ;
+ }
+
// Close any initially opened dialogs (e.g. "About" dialog shown unless a
// special command line option is specified).
for(;;)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 81d6173f: Warn if DPI scale factor vaticinates failure with xvfb,
Greg Chicares <=