diff src/redisplay-x.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 3ecd8885ac67
children abe6d1db359e
line wrap: on
line diff
--- a/src/redisplay-x.c	Mon Aug 13 11:32:27 2007 +0200
+++ b/src/redisplay-x.c	Mon Aug 13 11:33:38 2007 +0200
@@ -219,7 +219,7 @@
 x_text_width_single_run (struct face_cachel *cachel, struct textual_run *run)
 {
   Lisp_Object font_inst = FACE_CACHEL_FONT (cachel, run->charset);
-  struct Lisp_Font_Instance *fi = XFONT_INSTANCE (font_inst);
+  Lisp_Font_Instance *fi = XFONT_INSTANCE (font_inst);
   if (!fi->proportional_p)
     return fi->width * run->len;
   else
@@ -400,9 +400,9 @@
 	      else if (rb->object.chr.ch == '\n')
 		{
 		  /* Clear in case a cursor was formerly here. */
-		  redisplay_clear_region (window, findex, xpos, 
+		  redisplay_clear_region (window, findex, xpos,
 					  DISPLAY_LINE_YPOS (dl),
-					  rb->width, 
+					  rb->width,
 					  DISPLAY_LINE_HEIGHT (dl));
 		  elt++;
 		}
@@ -880,7 +880,7 @@
   for (i = 0; i < nruns; i++)
     {
       Lisp_Object font = FACE_CACHEL_FONT (cachel, runs[i].charset);
-      struct Lisp_Font_Instance *fi = XFONT_INSTANCE (font);
+      Lisp_Font_Instance *fi = XFONT_INSTANCE (font);
       int this_width;
       int need_clipping;
 
@@ -1166,9 +1166,9 @@
 }
 
 void
-x_output_x_pixmap (struct frame *f, struct Lisp_Image_Instance *p, int x,
+x_output_x_pixmap (struct frame *f, Lisp_Image_Instance *p, int x,
 		   int y, int xoffset, int yoffset,
-		   int width, int height, unsigned long fg, unsigned long bg, 
+		   int width, int height, unsigned long fg, unsigned long bg,
 		   GC override_gc)
 {
   struct device *d = XDEVICE (f->device);
@@ -1219,15 +1219,15 @@
      pixel values, instead of symbolic of fg/bg. */
   if (IMAGE_INSTANCE_PIXMAP_DEPTH (p) > 0)
     {
-      XCopyArea (dpy, 
-		 IMAGE_INSTANCE_X_PIXMAP_SLICE 
+      XCopyArea (dpy,
+		 IMAGE_INSTANCE_X_PIXMAP_SLICE
 		 (p, IMAGE_INSTANCE_PIXMAP_SLICE (p)), x_win, gc, xoffset,
 		 yoffset, width,
 		 height, x, y);
     }
   else
     {
-      XCopyPlane (dpy, IMAGE_INSTANCE_X_PIXMAP_SLICE 
+      XCopyPlane (dpy, IMAGE_INSTANCE_X_PIXMAP_SLICE
 		  (p, IMAGE_INSTANCE_PIXMAP_SLICE (p)), x_win, gc,
 		  xoffset, yoffset, width, height, x, y, 1L);
     }
@@ -1241,11 +1241,11 @@
 {
   struct frame *f = XFRAME (w->frame);
   struct device *d = XDEVICE (f->device);
-  struct Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance);
+  Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance);
 
   Display *dpy = DEVICE_X_DISPLAY (d);
   Window x_win = XtWindow (FRAME_X_TEXT_WIDGET (f));
- 
+
   /* Output the pixmap. */
   {
     Lisp_Object tmp_pixel;
@@ -1430,7 +1430,7 @@
     {
       int cursor_height, cursor_y;
       int focus = EQ (w->frame, DEVICE_FRAME_WITH_FOCUS_REAL (d));
-      struct Lisp_Font_Instance *fi;
+      Lisp_Font_Instance *fi;
 
       fi = XFONT_INSTANCE (FACE_CACHEL_FONT
 			   (WINDOW_FACE_CACHEL (w, rb->findex),
@@ -1920,7 +1920,7 @@
       return;
     }
 
-  redisplay_clear_to_window_end (w, WINDOW_TEXT_TOP (w), 
+  redisplay_clear_to_window_end (w, WINDOW_TEXT_TOP (w),
 				 WINDOW_TEXT_BOTTOM (w));
 }