From 810f8e5a87c238a10ebe176f5e0e623a4703eed7 Mon Sep 17 00:00:00 2001 From: Erkan Ozgur Yilmaz Date: Tue, 22 Oct 2024 22:38:47 +0100 Subject: [PATCH] [#16] Fixed `DisplayCAL.RealDisplaySizeMM.Display.get_dispwin_output()` for Windows. --- DisplayCAL/RealDisplaySizeMM.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DisplayCAL/RealDisplaySizeMM.py b/DisplayCAL/RealDisplaySizeMM.py index 6866283d..70c913b6 100644 --- a/DisplayCAL/RealDisplaySizeMM.py +++ b/DisplayCAL/RealDisplaySizeMM.py @@ -165,9 +165,9 @@ def get_dispwin_output() -> bytes: return b"" if sys.platform == "win32": - startupinfo = sp.STARTUPINFO() - startupinfo.dwFlags |= sp.STARTF_USESHOWWINDOW - startupinfo.wShowWindow = sp.SW_HIDE + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + startupinfo.wShowWindow = subprocess.SW_HIDE else: startupinfo = None