From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround Date: Fri, 30 Dec 2011 09:04:16 +0800 Message-ID: <877h1ehnu7.fsf@gnu.org> References: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325207121 31481 80.91.229.12 (30 Dec 2011 01:05:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2011 01:05:21 +0000 (UTC) Cc: 10397@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 30 02:05:16 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 1RgQuI-0005oc-W5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Dec 2011 02:05:15 +0100 Original-Received: from localhost ([::1]:56706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgQuI-0005ez-5X for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2011 20:05:14 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgQuF-0005ej-AJ for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:05:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgQuE-00032V-4J for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:05:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgQuD-00032P-W1 for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:05:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgQx0-0001aZ-1E for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2011 20:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Dec 2011 01:08: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.13252072396058 (code B ref 10397); Fri, 30 Dec 2011 01:08:01 +0000 Original-Received: (at 10397) by debbugs.gnu.org; 30 Dec 2011 01:07:19 +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 1RgQwI-0001Zf-Q2 for submit@debbugs.gnu.org; Thu, 29 Dec 2011 20:07:19 -0500 Original-Received: from mail-iy0-f172.google.com ([209.85.210.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RgQwG-0001ZV-5z for 10397@debbugs.gnu.org; Thu, 29 Dec 2011 20:07:17 -0500 Original-Received: by iabz21 with SMTP id z21so2362293iab.3 for <10397@debbugs.gnu.org>; Thu, 29 Dec 2011 17:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=nMxfodxNsmdfkusUK5ZqFajn6eh6S4bnMQMwn0YR0Pw=; b=Y5FyLqV8GN2VIOmKKAY9vmBSCXCm0ThF7CB5t3wY5V9QFHA2i+a+cfo3ul++SMpnel CQmJ6U8mgTYdS4jGWhswouPwV56Y2TPZzqIrYHYK5kHsfhhndmakIDjV065j+oLTIgk8 xagWtT5HbhXxokj0reWZNbvQEsZny8Us3xB00= Original-Received: by 10.50.202.105 with SMTP id kh9mr42489699igc.3.1325207062982; Thu, 29 Dec 2011 17:04:22 -0800 (PST) Original-Received: from home.jasonrumney.net ([180.75.74.4]) by mx.google.com with ESMTPS id t5sm71252580igb.4.2011.12.29.17.04.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Dec 2011 17:04:22 -0800 (PST) Original-Received: by home.jasonrumney.net (Postfix, from userid 1000) id BE7CB16E9; Fri, 30 Dec 2011 09:04:16 +0800 (MYT) In-Reply-To: <69c9ec930ef1d48655624d437aa66d0fce275d3e.1325166766.git.dancol@dancol.org> (Daniel Colascione's message of "Thu, 29 Dec 2011 06:05:53 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 29 Dec 2011 20:08:02 -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:55292 Archived-At: Daniel Colascione writes: > 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. 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.