From: Kim F. Storm Date: Fri, 21 Apr 2006 14:06:55 +0000 (+0000) Subject: (struct image): New member `corners'. X-Git-Tag: emacs-pretest-22.0.90~3003 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7b48cc1354a2efff9fb528c1b3c78f47d001178e;p=emacs.git (struct image): New member `corners'. (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros. --- 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. */