Mercurial > emacs
changeset 28786:e18bbe250122
(DEFAULT_IMAGE_HEIGHT): New macro.
(IMAGE_ASCENT): Removed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 02 May 2000 20:02:55 +0000 |
parents | 796eafcfc070 |
children | 90e5b2abbd10 |
files | src/dispextern.h |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispextern.h Tue May 02 20:02:29 2000 +0000 +++ b/src/dispextern.h Tue May 02 20:02:55 2000 +0000 @@ -1917,9 +1917,12 @@ #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 @@ }; -/* 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. */