bug#80281: nil

Alan Third <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
On Sat, Aug 01, 2026 at 02:17:15PM +0000, Divya Ranjan Pattanaik wrote:
> +/* Weak hash map associating the image spec with the canvas object.  */
> +
> +static Lisp_Object canvas_map;

Hi Divya, can you explain a bit how this works? canvas_free_unused
uses it to decide whether to delete a canvas from canvas_list, but I
can't see how canvases are removed from it.

#elif defined HAVE_NS
  /* MacOS: Recreates and fills the pixmap */
  img->pixmap = ns_image_reset(img->pixmap, width, height);
  for (int y = 0; y < height; ++y)
    for (int x = 0; x < width; ++x)
      PUT_PIXEL (img->pixmap, x, y, src[y * width + x]);

I think it might also be worth putting a longer comment here
explaining that we weren't able to "recache" the NSImage, so we used
this work-around instead.

-- 
Alan Third
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.