GNU bug report logs - #10397
[PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Thu, 29 Dec 2011 14:10:02 UTC

Severity: normal

Tags: patch

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 10397 <at> debbugs.gnu.org
Subject: bug#10397: [PATCH] Under Remote Desktop, NUMCOLORS is unreliable; workaround
Date: Thu, 29 Dec 2011 17:27:48 +0100
On Thu, Dec 29, 2011 at 17:23, Daniel Colascione <dancol <at> dancol.org> wrote:

> Why? What's the point of adding the extra complexity?
> Setting cap to -1 leads to this line
>
>    1 << min (dpyinfo->n_planes * dpyinfo->n_cbits, 24);
>
> which produces a reasonable result for direct color displays.
> Why keep using NUMCOLORS, which we know to be broken?

No, you said that NUMCOLORS is known to be broken in a very specific
case. In the general, non-RemoteDektop case, it works. Can you
guarantee that for every non-palettized display, it will produce the
same number? Because otherwise you're changing the current behavior
for people who's not affected by the RemoteDeskopt-related bug.

    Juanma




This bug report was last modified 8 years and 240 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.