changeset 70167:fd8a5c0f1290

(struct image): New member `corners'. (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
author Kim F. Storm <storm@cua.dk>
date Fri, 21 Apr 2006 14:06:55 +0000
parents 1204092d4458
children 60bff6b0c656
files src/dispextern.h
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.  */