DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46LFsoF92087682 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=VVjW0R3T X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 507CC386100A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1721577288; bh=vKMdWnV1+2TcrfbWfMUgcckIBwyS2E/C7Nd/PFY7fEA=; h=Date:Subject:To:References:Cc:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=VVjW0R3T5AQnvSawwRFDjSbmzNK2cPoraHAnb6Hk3YP1vixSg9n2iMILTgrtUjVOA 8zAHNUd6M5q9gS9Uu8LEoau9fQ+pRFk/JiodQBcIghtMPBluHleIINzW54+qxJPiDh DAwrkycYrviDQ6gJZg92Pu9tlVrRviSULfxoZ0B4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 906D7385E003 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 906D7385E003 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721577231; cv=none; b=pqkVSVlp7ruMohDcdIkeH3/vNx4julfuNfzRGfQvkYhWyT9ecadK/R5+Rr/MPeraHeecT6S2K9QBAb5As2fIbw85Fz8JOTlqVO9nH3iND3W3hjE2NsO+x5lH0MnfYwGVOhAaOwk/FDxNy0UwuZUTrONWBXd16whgsCmTNRrg4N0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721577231; c=relaxed/simple; bh=BgQrof+5SGN7baM4Mt+SY6TKQzZz501FheWrihGiT1w=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=JNHI5dQRuI6IR+UXUhC74fb3K3SbhIyZIIR+e55zRodk3SE1nxVCzeYoICZFMbfPH9N+lodcJM0C8bZSaP0DKXMa1eopReFviEVH0WIuqDrGm0zVUgGrVfvRgZ2rbPwIKvkQICBvTiAxtmT2DOW7L/D9tduaj2bnAfX0GdRvKCA= ARC-Authentication-Results: i=1; server2.sourceware.org X-SNCR-Rigid: 6694418000CFD18F X-Originating-IP: [86.143.43.103] X-OWM-Source-IP: 86.143.43.103 X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeftddrheehgdelhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfuvfhfhfevjggtgfesthejredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepkeeuffelkeehjedtgefhiefhteduieejtdejgfevfedukeeuleeiudevgeegieevnecuffhomhgrihhnpehmihgtrhhoshhofhhtrdgtohhmnecukfhppeekiedrudegfedrgeefrddutdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegfedrgeefrddutdefpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmpdhrtghpthhtohephiihlhhofhhfihgtihgrlheshhhothhmrghilhdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddugeefqdegfedquddtfedrrhgrnhhgvgekiedqudegfedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgt ohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotddtie X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-VadeSecure-score: verdict=clean score=0/300, class=clean Message-ID: Date: Sun, 21 Jul 2024 16:53:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: setup.exe: Improvements of DPI handling To: Yang Yu Lin References: Content-Language: en-US Cc: cygwin AT cygwin DOT com In-Reply-To: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 07/07/2024 03:46, Yang Yu Lin via Cygwin wrote: > When running setup on my device (Windows 11, connected with 2 screens > which use different DPI revolutions), the setup appears bluury on my > secondary screen (not on the primary screen). > > Because current setup.exe.manifest just set the dpiAware element, > which causes the setup cannot handle different DPI on different > screen, the current solution is to add dpiAwareness element and > change the value of dpiAware to true/pm to handle DPI in per-moniter > mode (patch attached). More infomation can be found at > https://learn.microsoft.com/windows/win32/sbscs/application-manifests#dpiAware > and > https://learn.microsoft.com/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows Yes, this is clearly needed. Thanks very much for the patch, I have applied it. > Also, the necessary options to use the Unicode version of the > Windows API functions is also added in another patch to avoid > localized message is incorrectly encoded when using the --lang > option. Uh, can you explain a bit more what specific problem this fixes. Because we don't make use of TCHAR, and internally make a lot of use of char strings containing UTF-8 encoded unicode, I'm not sure that switching to *W API variants everywhere is a good idea (and have been trying to avoid it so far). -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple