# HG changeset patch # User Kim F. Storm # Date 1145628415 0 # Node ID fd8a5c0f1290ee84b80d5df564d82162b3cb0367 # Parent 1204092d44586371cb58e93663418a69e2dcfd16 (struct image): New member `corners'. (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros. diff -r 1204092d4458 -r fd8a5c0f1290 src/dispextern.h --- a/src/dispextern.h Fri Apr 21 14:06:42 2006 +0000 +++ b/src/dispextern.h Fri Apr 21 14:06:55 2006 +0000 @@ -2421,6 +2421,15 @@ #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. */