]> code.delx.au - gnu-emacs/commitdiff
(struct image): New member `corners'.
authorKim F. Storm <storm@cua.dk>
Fri, 21 Apr 2006 14:06:55 +0000 (14:06 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 21 Apr 2006 14:06:55 +0000 (14:06 +0000)
(TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.

src/dispextern.h

index 333ce8f36e0570a39a0eb7147c30b65d515d61b6..43655ab9a1990664fa6bdf25219bbfb407eaccc1 100644 (file)
@@ -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.  */