unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36337: 26.1; XBM images are sometimes not displayed correctly
@ 2019-06-23  7:15 Markus Triska
  2019-06-23  8:05 ` Pip Cet
  0 siblings, 1 reply; 23+ messages in thread
From: Markus Triska @ 2019-06-23  7:15 UTC (permalink / raw)
  To: 36337


Please start Emacs with "$ emacs -Q", and insert the form:

    (let* ((width 100)
           (height 100)
           (data (make-bool-vector (* width height) t)))
      (insert "\n")
      (insert-image `(image :type xbm
                            :data ,data
                            :width ,width
                            :height ,height) "t")
      (insert "\n"))

Please move point to the end of the form, and evaluate it with C-x C-e.

This displays a 100x100 XBM image. However, the bottom of the image is
not displayed as intended: I see a mix of black and white pixels at the
bottom of the image, whereas I intend it to be filled with black pixels.

For comparison, it works correctly when I change both width and height
from 100 to 200, or both to 400, and also for several other values.

In GNU Emacs 26.1 (build 1, x86_64-apple-darwin15.3.0, X toolkit, Xaw scroll bars)
 of 2018-09-22
Windowing system distributor 'The X.Org Foundation', version 11.0.11502000

Configured features:
XPM JPEG TIFF GIF PNG GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE XFT
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LCMS2






^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-09-24 16:35 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-23  7:15 bug#36337: 26.1; XBM images are sometimes not displayed correctly Markus Triska
2019-06-23  8:05 ` Pip Cet
2019-06-23  8:22   ` Markus Triska
2019-06-23 14:29   ` Eli Zaretskii
2019-06-23 16:26     ` Pip Cet
2019-06-23 16:40       ` Eli Zaretskii
2019-06-23 19:16         ` Pip Cet
2019-06-28  7:57           ` Eli Zaretskii
2019-06-28  8:29             ` Pip Cet
2019-06-28 12:43               ` Eli Zaretskii
2019-06-29  7:20                 ` Pip Cet
2019-06-29  7:56                   ` Eli Zaretskii
2019-06-29  8:25                     ` Pip Cet
2019-06-29  9:54                       ` Eli Zaretskii
2019-06-30  9:48                         ` Pip Cet
2019-06-30 14:34                           ` Eli Zaretskii
2019-06-30 14:53                             ` Pip Cet
2019-06-30 15:15                               ` Eli Zaretskii
2019-06-30 15:36                                 ` Pip Cet
2019-06-30 16:09                                   ` Eli Zaretskii
2019-06-30 17:12                                     ` Pip Cet
2019-06-30 17:35                                       ` Eli Zaretskii
2019-09-24 16:35                                         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).