]> git.eshelyaron.com Git - emacs.git/commitdiff
(four_corners_best): Reindent.
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 10:38:59 +0000 (10:38 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Nov 2001 10:38:59 +0000 (10:38 +0000)
src/ChangeLog
src/xfns.c

index c2e675db8155735671f68e1d5758fe3292f5e9a8..586db55b6f6182d641adca6d4857c6b8e68e3e1e 100644 (file)
@@ -1,5 +1,7 @@
 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
 
+       * xfns.c (four_corners_best): Reindent.
+
        * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): 
        Handle :box so that it is possible to specify sexprs.
 
index 4b4dcdc75a3a788fdb41d7ea12091c3bfd1c4624..4ae92260cfd0e3bee3f6b53f02f46ecb9ada3841 100644 (file)
@@ -5778,29 +5778,29 @@ four_corners_best (ximg, width, height)
      XImage *ximg;
      unsigned long width, height;
 {
-      unsigned long corners[4], best;
-      int i, best_count;
+  unsigned long corners[4], best;
+  int i, best_count;
 
-      /* Get the colors at the corners of ximg.  */
-      corners[0] = XGetPixel (ximg, 0, 0);
-      corners[1] = XGetPixel (ximg, width - 1, 0);
-      corners[2] = XGetPixel (ximg, width - 1, height - 1);
-      corners[3] = XGetPixel (ximg, 0, height - 1);
+  /* Get the colors at the corners of ximg.  */
+  corners[0] = XGetPixel (ximg, 0, 0);
+  corners[1] = XGetPixel (ximg, width - 1, 0);
+  corners[2] = XGetPixel (ximg, width - 1, height - 1);
+  corners[3] = XGetPixel (ximg, 0, height - 1);
 
-      /* Choose the most frequently found color as background.  */
-      for (i = best_count = 0; i < 4; ++i)
-       {
-         int j, n;
+  /* Choose the most frequently found color as background.  */
+  for (i = best_count = 0; i < 4; ++i)
+    {
+      int j, n;
          
-         for (j = n = 0; j < 4; ++j)
-           if (corners[i] == corners[j])
-             ++n;
+      for (j = n = 0; j < 4; ++j)
+       if (corners[i] == corners[j])
+         ++n;
 
-         if (n > best_count)
-           best = corners[i], best_count = n;
-       }
+      if (n > best_count)
+       best = corners[i], best_count = n;
+    }
 
-      return best;
+  return best;
 }
 
 /* Return the `background' field of IMG.  If IMG doesn't have one yet,