GNU bug report logs -
#71159
[PATCH] Stipple support for MS Windows
Previous Next
Reported by: "Elijah G." <eg642616 <at> gmail.com>
Date: Fri, 24 May 2024 01:28:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: "Elijah G." <eg642616 <at> gmail.com>
> Cc: Po Lu <luangruo <at> yahoo.com>, 71159 <at> debbugs.gnu.org, Eli Zaretskii
> <eliz <at> gnu.org>
> Date: Sat, 01 Jun 2024 12:54:22 -0600
>
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -2827,6 +2827,9 @@ thumbnail images and show them in the thumbnail buffer. Unlike with
> using 'convert', this fallback method is synchronous, so Emacs will wait
> until all the thumbnails are created and displayed, before showing them.
>
> +---
> +*** Emacs on MS-Windows now supports the :stipple face attribute
This should end with a period, and :stipple should be quoted as
':stipple'.
> + Emacs_Pixmap stipple, bitmap;
> bitmap = CreateBitmap (width, height,
> - FRAME_DISPLAY_INFO (XFRAME (frame))->n_planes,
> - FRAME_DISPLAY_INFO (XFRAME (frame))->n_cbits,
> + dpyinfo->n_planes,
> + dpyinfo->n_cbits,
> bits);
Please rewrite this as follows:
Emacs_Pixmap stipple;
Emacs_Pixmap bitmap = CreateBitmap (width, height, dpyinfo->n_planes,
dpyinfo->n_cbits, bits);
> + {
> + char *invertedBits;
> + int nbytes, i;
> +
> + invertedBits = bits;
> + nbytes = (width + CHAR_BIT - 1) / CHAR_BIT * height;
Also here, please initialize the local variables where appropriate:
{
char invertedBits = bits;
int nbytes = (width + CHAR_BIT - 1) / CHAR_BIT * height, i;
Thanks.
This bug report was last modified 1 year and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.