From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Thu, 29 Dec 2011 17:10:44 -0800 Message-ID: <4EFD0F94.8090406@dancol.org> References: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> <877h1ehnu7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0F848171C9731087038C4536" X-Trace: dough.gmane.org 1325207481 1014 80.91.229.12 (30 Dec 2011 01:11:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 01:11:21 +0000 (UTC) Cc: 10397@debbugs.gnu.org To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 02:11:15 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgR07-0001vI-3x for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 02:11:15 +0100 Original-Received: from localhost ([::1]:41024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgR06-000654-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 20:11:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgR02-00064n-T0 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:11:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgR01-00046P-II for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:11:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgR01-00046L-FW for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:11:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgR2n-0001ie-Tq for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2011 01:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10397-submit@debbugs.gnu.org id=B10397.13252076286585 (code B ref 10397); Fri, 30 Dec 2011 01:14:01 +0000 Original-Received: (at 10397) by debbugs.gnu.org; 30 Dec 2011 01:13:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgR2Z-0001iA-Jd for submit@debbugs.gnu.org; Thu, 29 Dec 2011 20:13:47 -0500 Original-Received: from dancol.org ([96.126.100.184]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgR2X-0001i1-84 for 10397@debbugs.gnu.org; Thu, 29 Dec 2011 20:13:46 -0500 Original-Received: from c-24-18-179-193.hsd1.wa.comcast.net ([24.18.179.193] helo=edith.local) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RgQzj-00005b-AW; Thu, 29 Dec 2011 17:10:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <877h1ehnu7.fsf@gnu.org> X-Enigmail-Version: 1.3.4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Dec 2011 20:14:01 -0500 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:55293 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0F848171C9731087038C4536 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/29/11 5:04 PM, Jason Rumney wrote: > Daniel Colascione writes: >=20 >> 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. >=20 > I've always been under the impression that this is deliberate, and > related to the bandwidth that is available, so at least applications > that want to improve performance over low bandwidth links can restrict > their use of colors. A remote desktop user can change the depth of the virtual display presented to applications on the server. If a user wants to trade fidelity for bandwidth, he can configure his client to use an 8bpp visual. Some users (me) configure their clients for a relatively high bit depth, but find that the OS lies to applications some of the time (NUMCOLORS is wrong, but the display bitness is accurate). I think the NUMCOLORS behavior is a real bug; if it weren't, the lie would be more consistently presented. --------------enig0F848171C9731087038C4536 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk79D5YACgkQ17c2LVA10VvawACg3HO9VvbBzPT0DaIfXEnWihJ0 HLoAn2k0M/tclAvHfPOsudC3R8/vRHsK =1EtR -----END PGP SIGNATURE----- --------------enig0F848171C9731087038C4536--