1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

(DEFAULT_IMAGE_HEIGHT): New macro.

(IMAGE_ASCENT): Removed.
This commit is contained in:
Gerd Moellmann 2000-05-02 20:02:55 +00:00
parent 95af8492a3
commit bdda7eb033

View file

@ -1917,9 +1917,12 @@ struct image
#define DEFAULT_IMAGE_WIDTH 30
#define DEFAULT_IMAGE_HEIGHT 30
/* Percent of image height used as ascent. */
/* Percent of image height used as ascent. A value of
CENTERED_IMAGE_ASCENT means draw center the image centered on the
line. */
int ascent;
#define DEFAULT_IMAGE_ASCENT 50
#define CENTERED_IMAGE_ASCENT -1
/* Lisp specification of this image. */
Lisp_Object spec;
@ -1980,11 +1983,6 @@ struct image_cache
};
/* Value is the ascent of image IMG. */
#define IMAGE_ASCENT(IMG) \
(((IMG)->height + (IMG)->margin) * (IMG)->ascent / 100.0)
/* Value is a pointer to the image with id ID on frame F, or null if
no image with that id exists. */