diff src/dispextern.h @ 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 770e629b410a
children 3cc856b86408 966a40e7fb54 2ecafc6d5db7
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.  */