From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Tue, 07 Aug 2012 21:07:02 +0300 Message-ID: <83mx26fuex.fsf@gnu.org> References: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> <4EFC9416.6090005@dancol.org> <4EFC987D.2020901@dancol.org> <4EFCF0BF.1020907@dancol.org> <4EFD2D75.3030603@dancol.org> <8339c2v3h7.fsf@gnu.org> <83txwefwwl.fsf@gnu.org> <50215163.1000206@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1344362889 2766 80.91.229.3 (7 Aug 2012 18:08:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 18:08:09 +0000 (UTC) Cc: lekktu@gmail.com, 10397@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 07 20:08:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SyoCN-0006Gu-Pp for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 20:08:07 +0200 Original-Received: from localhost ([::1]:37732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyoCM-00067N-Oe for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 14:08:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyoCK-00067E-BK for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 14:08:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SyoCI-0005jD-L6 for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 14:08:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SyoCI-0005j7-IE for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 14:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SyoK2-0002vX-1Q for bug-gnu-emacs@gnu.org; Tue, 07 Aug 2012 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Aug 2012 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10397 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: patch Original-Received: via spool by 10397-submit@debbugs.gnu.org id=B10397.134436330611183 (code B ref 10397); Tue, 07 Aug 2012 18:16:02 +0000 Original-Received: (at 10397) by debbugs.gnu.org; 7 Aug 2012 18:15:06 +0000 Original-Received: from localhost ([127.0.0.1]:40198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SyoJ7-0002uK-Qa for submit@debbugs.gnu.org; Tue, 07 Aug 2012 14:15:06 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:36880) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SyoJ5-0002tt-H7 for 10397@debbugs.gnu.org; Tue, 07 Aug 2012 14:15:04 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8E00K00CWM5T00@a-mtaout22.012.net.il> for 10397@debbugs.gnu.org; Tue, 07 Aug 2012 21:07:02 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8E00JO5CZPXZ40@a-mtaout22.012.net.il>; Tue, 07 Aug 2012 21:07:02 +0300 (IDT) In-reply-to: <50215163.1000206@dancol.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62922 Archived-At: > Date: Tue, 07 Aug 2012 10:33:23 -0700 > From: Daniel Colascione > CC: Juanma Barranquero , 10397@debbugs.gnu.org > > > Last time we spoke, the conclusion (at least mine ;-) was that it > > might be better not to call GetDeviceCaps at all, and instead reuse > > the code below this, which uses the number of planes and bits per > > plane. If you agree with that reasoning, could you please see if that > > change solves your problem? > > Sorry about that --- I'm bringing a lot of this up form very cold > mental storage. It's been a little while since I've had a chance to do > any Emacs hacking. No need to apologize. It's not that my memory is better than yours, I just looked up the bug report and re-read the entire thread... > I'm perfectly happy using the planes-and-bits code instead of calling > GetDeviceCaps. I'll remove this patch from the cygw32 changeset and > check the (now, much simpler) fix for the colors issue into the trunk, > if that's all right. Please go ahead, but I hope you have a way to check the change you will commit with remote desktop, because I don't.