From: Gerd Moellmann Date: Tue, 2 May 2000 20:02:55 +0000 (+0000) Subject: (DEFAULT_IMAGE_HEIGHT): New macro. X-Git-Tag: emacs-pretest-21.0.90~4072 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bdda7eb03333d00ba96f29d52cef712b38c3fcb1;p=emacs.git (DEFAULT_IMAGE_HEIGHT): New macro. (IMAGE_ASCENT): Removed. --- diff --git a/src/dispextern.h b/src/dispextern.h index ad32c70360f..c5dd55b3a98 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -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. */