From 7b48cc1354a2efff9fb528c1b3c78f47d001178e Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 21 Apr 2006 14:06:55 +0000 Subject: [PATCH] (struct image): New member `corners'. (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros. --- src/dispextern.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dispextern.h b/src/dispextern.h index 333ce8f36e0..43655ab9a19 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -2421,6 +2421,15 @@ struct image #define DEFAULT_IMAGE_WIDTH 30 #define DEFAULT_IMAGE_HEIGHT 30 + /* Top/left and bottom/right corner pixel of actual image data. + Used by four_corners_best to consider the real image data, + rather than looking at the optional image margin. */ + int corners[4]; +#define TOP_CORNER 0 +#define LEFT_CORNER 1 +#define BOT_CORNER 2 +#define RIGHT_CORNER 3 + /* Percent of image height used as ascent. A value of CENTERED_IMAGE_ASCENT means draw the image centered on the line. */ -- 2.39.2