From: Juanma Barranquero <lektu@terra.es>
Subject: Re: list-colors-display shows only one color
Date: Wed, 13 Feb 2002 18:07:15 +0100 [thread overview]
Message-ID: <20020213173417.E323.LEKTU@terra.es> (raw)
In-Reply-To: <200202131539.g1DFd0x08788@aztec.santafe.edu>
On Wed, 13 Feb 2002 08:39:00 -0700 (MST), Richard Stallman <rms@gnu.org> wrote:
> It is an error to use the C shift operator with those arguments.
> So this code clearly is one bug, and needs to be fixed.
> Maybe that fix will solve the problem you are encountering.
cap is make_number'd, so this is a posible fix.
/L/e/k/t/u
2002-02-13 Juanma Barranquero <lektu@terra.es>
* w32fns.c (Fx_display_color_cells): Don't allow number of color
cells to overflow EMACS_INT size.
Index: w32fns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/w32fns.c,v
retrieving revision 1.154
diff -u -c -r1.154 w32fns.c
*** w32fns.c 9 Feb 2002 01:31:07 -0000 1.154
--- w32fns.c 13 Feb 2002 17:01:13 -0000
***************
*** 7654,7660 ****
cap = GetDeviceCaps (hdc,NUMCOLORS);
if (cap < 0)
! cap = 1 << (dpyinfo->n_planes * dpyinfo->n_cbits);
ReleaseDC (dpyinfo->root_window, hdc);
--- 7654,7660 ----
cap = GetDeviceCaps (hdc,NUMCOLORS);
if (cap < 0)
! cap = 1 << min(dpyinfo->n_planes * dpyinfo->n_cbits, VALBITS - 2);
ReleaseDC (dpyinfo->root_window, hdc);
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
prev parent reply other threads:[~2002-02-13 17:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-11 18:12 list-colors-display shows only one color Juanma Barranquero
2002-02-11 19:48 ` Eli Zaretskii
2002-02-11 20:44 ` Andreas Schwab
2002-02-12 5:41 ` Eli Zaretskii
2002-02-12 11:01 ` Andreas Schwab
2002-02-12 11:05 ` Eli Zaretskii
2002-02-13 15:37 ` Richard Stallman
2002-02-13 16:25 ` Andreas Schwab
2002-02-12 9:00 ` Juanma Barranquero
2002-02-12 12:18 ` Juanma Barranquero
2002-02-13 13:31 ` Andreas Schwab
2002-02-13 14:13 ` Juanma Barranquero
2002-02-13 14:39 ` Andreas Schwab
2002-02-13 15:39 ` Richard Stallman
2002-02-13 17:07 ` Juanma Barranquero [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020213173417.E323.LEKTU@terra.es \
--to=lektu@terra.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.