delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/21/11:54:50

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: <b3fde2b3-49e4-429f-9134-26076b1c909c@dronecode.org.uk>
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 <yylofficial AT hotmail DOT com>
References: <CY8PR10MB6562B602DC0709BA00E404F5A2D92 AT CY8PR10MB6562 DOT namprd10 DOT prod DOT outlook DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <CY8PR10MB6562B602DC0709BA00E404F5A2D92@CY8PR10MB6562.namprd10.prod.outlook.com>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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<https://learn.microsoft.com/zh-cn/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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019