From bdda7eb03333d00ba96f29d52cef712b38c3fcb1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 2 May 2000 20:02:55 +0000 Subject: [PATCH] (DEFAULT_IMAGE_HEIGHT): New macro. (IMAGE_ASCENT): Removed. --- src/dispextern.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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. */ -- 2.39.5