I wouldn't call myself an expert on images on Windows. I basically got it working through trial and error, and from the looks of that history there may have been bugs fixed later that invalidated some early decisions. Most of the monchrome Emacs icons were PBM IIRC, so XBM may not have had a lot of testing on Windows over the past 12 years. On Fri, 27 Sep 2019, 4:44 AM Eli Zaretskii, wrote: > > From: Lars Ingebrigtsen > > Cc: jasonr@gnu.org, jasonrumney@gmail.com, kzhr@d1.dion.ne.jp, > > 6918@debbugs.gnu.org > > Date: Thu, 26 Sep 2019 20:34:15 +0200 > > > > >> /* Windows convention for mono bitmaps is black = background, > > >> white = foreground. */ > > >> SetTextColor (new_img_dc, background); > > >> SetBkColor (new_img_dc, foreground); > > >> > > >> Can anybody who works on Windows say whether this is the case? > > > > > > Say whether WHAT is the case? > > > > That the convention in Windows is as described in the comment above. > > No clue, sorry. >