comparison src/redisplay-x.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 2c653fbe06e0
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
239 Given a string and a face, return the string's length in pixels when 239 Given a string and a face, return the string's length in pixels when
240 displayed in the font associated with the face. 240 displayed in the font associated with the face.
241 */ 241 */
242 242
243 static int 243 static int
244 x_text_width (struct frame *f, struct face_cachel *cachel, const Ichar *str, 244 x_text_width (struct frame *UNUSED (f), struct face_cachel *cachel,
245 Charcount len) 245 const Ichar *str, Charcount len)
246 { 246 {
247 int width_so_far = 0; 247 int width_so_far = 0;
248 unsigned char *text_storage = (unsigned char *) ALLOCA (2 * len); 248 unsigned char *text_storage = (unsigned char *) ALLOCA (2 * len);
249 struct textual_run *runs = alloca_array (struct textual_run, len); 249 struct textual_run *runs = alloca_array (struct textual_run, len);
250 int nruns; 250 int nruns;
289 x_window_output_begin 289 x_window_output_begin
290 290
291 Perform any necessary initialization prior to an update. 291 Perform any necessary initialization prior to an update.
292 ****************************************************************************/ 292 ****************************************************************************/
293 static void 293 static void
294 x_window_output_begin (struct window *w) 294 x_window_output_begin (struct window *UNUSED (w))
295 { 295 {
296 } 296 }
297 297
298 /***************************************************************************** 298 /*****************************************************************************
299 x_window_output_end 299 x_window_output_end
1233 1233
1234 static void 1234 static void
1235 x_output_pixmap (struct window *w, Lisp_Object image_instance, 1235 x_output_pixmap (struct window *w, Lisp_Object image_instance,
1236 struct display_box *db, struct display_glyph_area *dga, 1236 struct display_box *db, struct display_glyph_area *dga,
1237 face_index findex, int cursor_start, int cursor_width, 1237 face_index findex, int cursor_start, int cursor_width,
1238 int cursor_height, int bg_pixmap) 1238 int cursor_height, int UNUSED (bg_pixmap))
1239 { 1239 {
1240 struct frame *f = XFRAME (w->frame); 1240 struct frame *f = XFRAME (w->frame);
1241 struct device *d = XDEVICE (f->device); 1241 struct device *d = XDEVICE (f->device);
1242 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); 1242 Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance);
1243 1243
1524 Draw a shadow around the given area using the given GC's. It is the 1524 Draw a shadow around the given area using the given GC's. It is the
1525 callers responsibility to set the GC's appropriately. 1525 callers responsibility to set the GC's appropriately.
1526 ****************************************************************************/ 1526 ****************************************************************************/
1527 void 1527 void
1528 x_output_shadows (struct frame *f, int x, int y, int width, int height, 1528 x_output_shadows (struct frame *f, int x, int y, int width, int height,
1529 GC top_shadow_gc, GC bottom_shadow_gc, GC background_gc, 1529 GC top_shadow_gc, GC bottom_shadow_gc,
1530 int shadow_thickness, int edges) 1530 GC UNUSED (background_gc), int shadow_thickness, int edges)
1531 { 1531 {
1532 struct device *d = XDEVICE (f->device); 1532 struct device *d = XDEVICE (f->device);
1533 1533
1534 Display *dpy = DEVICE_X_DISPLAY (d); 1534 Display *dpy = DEVICE_X_DISPLAY (d);
1535 Window x_win = XtWindow (FRAME_X_TEXT_WIDGET (f)); 1535 Window x_win = XtWindow (FRAME_X_TEXT_WIDGET (f));
1675 1675
1676 Clear the area in the box defined by the given parameters using the 1676 Clear the area in the box defined by the given parameters using the
1677 given face. 1677 given face.
1678 ****************************************************************************/ 1678 ****************************************************************************/
1679 static void 1679 static void
1680 x_clear_region (Lisp_Object locale, struct device* d, struct frame* f, face_index findex, 1680 x_clear_region (Lisp_Object UNUSED (locale), struct device* d,
1681 struct frame* f, face_index UNUSED (findex),
1681 int x, int y, 1682 int x, int y,
1682 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor, 1683 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor,
1683 Lisp_Object background_pixmap) 1684 Lisp_Object background_pixmap)
1684 { 1685 {
1685 Display *dpy; 1686 Display *dpy;