From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 1/9] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Tue, 07 Aug 2012 20:07:34 +0300 Message-ID: <83vcgufx61.fsf@gnu.org> References: <139f6550dc3f2f06eaea8a9a23bcf30333a41bcb.1344326992.git.dancol@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344359279 3400 80.91.229.3 (7 Aug 2012 17:07:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 17:07:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 19:07:59 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SynG8-0008CD-7N for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 19:07:56 +0200 Original-Received: from localhost ([::1]:47729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SynG7-0008Tn-Be for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2012 13:07:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SynG5-0008Th-8d for emacs-devel@gnu.org; Tue, 07 Aug 2012 13:07:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SynG4-0000rW-Bw for emacs-devel@gnu.org; Tue, 07 Aug 2012 13:07:53 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SynG4-0000qS-44 for emacs-devel@gnu.org; Tue, 07 Aug 2012 13:07:52 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8E00J00A8BMY00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 07 Aug 2012 20:07:34 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8E00J73A8M9F90@a-mtaout22.012.net.il>; Tue, 07 Aug 2012 20:07:34 +0300 (IDT) In-reply-to: <139f6550dc3f2f06eaea8a9a23bcf30333a41bcb.1344326992.git.dancol@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152265 Archived-At: > Date: Tue, 07 Aug 2012 01:19:27 -0700 > From: Daniel Colascione > > Under remote desktop, Windows returns the wrong number of colors from > GetDeviceCaps (hdc, NUMCOLORS). I hit this bug myself, and MSDN > comments seem to indicate that others hit it as well. The workaround > seems harmless: on non-palettized displays, calculating the number of > display colors based on display bitness should produce good results. Thanks. This is bug #10397, so I will reply there. Please follow up there, not here.