unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Help fix this: Bug in sliced XPM images on X -- bad clip mask origin.
@ 2004-06-03 22:15 Kim F. Storm
  2004-06-03 22:45 ` Jason Rumney
  2004-06-17 19:41 ` Jan D.
  0 siblings, 2 replies; 6+ messages in thread
From: Kim F. Storm @ 2004-06-03 22:15 UTC (permalink / raw)



Some time ago I installed changes to support image slices, and
it works fine with e.g. png.

However, there are severe problems with sliced XPM images, at least on X.  

The clip mask for each slice is taken from top/leftmost part of the
image, rather than the actual slice of the image.  I have tried a
zillion things to setup the clip mask (and rewrite other parts of the
code) to make this work, but to no avail.

So I hereby ask for help from more skilled X people.  How do you setup
the clip mask of an image with an image mask so that XCopyArea will
use the corresponding part of the image mask when copying a slice from
the image ?

Here is some code to illustrate the bug:

(progn
  (setq im2 (find-image '((:type xpm :file "gnus.xpm"))))
  (insert "\n")
  (insert-image im2)
  (insert "\n")
  (insert-sliced-image im2 nil nil 5 4)
  (insert "\n"))


Does this code work on W32 and/or MAC ?

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

end of thread, other threads:[~2004-06-18  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 22:15 Help fix this: Bug in sliced XPM images on X -- bad clip mask origin Kim F. Storm
2004-06-03 22:45 ` Jason Rumney
2004-06-04  1:29   ` YAMAMOTO Mitsuharu
2004-06-04  8:00     ` Kim F. Storm
2004-06-17 19:41 ` Jan D.
2004-06-18  7:58   ` Kim F. Storm

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).