unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Subject: Help fix this: Bug in sliced XPM images on X -- bad clip mask origin.
Date: 04 Jun 2004 00:15:50 +0200	[thread overview]
Message-ID: <m3oeo0b84p.fsf@kfs-l.imdomain.dk> (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

             reply	other threads:[~2004-06-03 22:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03 22:15 Kim F. Storm [this message]
2004-06-03 22:45 ` Help fix this: Bug in sliced XPM images on X -- bad clip mask origin 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3oeo0b84p.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).