comparison src/balloon_help.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 943eaba38521
children 308d34e9f07d
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
40 40
41 #include <X11/Xlib.h> 41 #include <X11/Xlib.h>
42 #include <X11/Xutil.h> 42 #include <X11/Xutil.h>
43 #include <X11/extensions/shape.h> 43 #include <X11/extensions/shape.h>
44 44
45 #include "compiler.h"
45 #include "xintrinsic.h" 46 #include "xintrinsic.h"
46 47
47 #include "balloon_help.h" 48 #include "balloon_help.h"
48 49
49 #ifndef max 50 #ifndef max
227 *width = extent.width; 228 *width = extent.width;
228 *height = fontStruct->ascent + fontStruct->descent; 229 *height = fontStruct->ascent + fontStruct->descent;
229 } 230 }
230 231
231 static void 232 static void
232 get_text_size (Display* dpy, XFontStruct* fontStruct, const char* text, 233 get_text_size (Display* UNUSED (dpy), XFontStruct* fontStruct,
233 int* max_width, int* max_height) 234 const char* text, int* max_width, int* max_height)
234 { 235 {
235 int width; 236 int width;
236 int height; 237 int height;
237 const char* start; 238 const char* start;
238 const char* end; 239 const char* end;
305 (y < screen_height / 2 ? SHAPE_CONE_TOP_LEFT: SHAPE_CONE_BOTTOM_LEFT) : 306 (y < screen_height / 2 ? SHAPE_CONE_TOP_LEFT: SHAPE_CONE_BOTTOM_LEFT) :
306 (y < screen_height / 2 ? SHAPE_CONE_TOP_RIGHT: SHAPE_CONE_BOTTOM_RIGHT); 307 (y < screen_height / 2 ? SHAPE_CONE_TOP_RIGHT: SHAPE_CONE_BOTTOM_RIGHT);
307 } 308 }
308 309
309 static void 310 static void
310 make_mask (int shape, int x, int y, int width, int height) 311 make_mask (int shape, int UNUSED (x), int UNUSED (y), int width, int height)
311 { 312 {
312 XPoint cone[ 3 ]; 313 XPoint cone[ 3 ];
313 314
314 grow_pixmap_mask (width, height); 315 grow_pixmap_mask (width, height);
315 316
334 XFillPolygon (b_dpy, b_mask, b_maskGC, cone, 3, Nonconvex, CoordModeOrigin); 335 XFillPolygon (b_dpy, b_mask, b_maskGC, cone, 3, Nonconvex, CoordModeOrigin);
335 336
336 } 337 }
337 338
338 static void 339 static void
339 show_help (XtPointer data, XtIntervalId* id) 340 show_help (XtPointer UNUSED (data), XtIntervalId* id)
340 { 341 {
341 int x, y; 342 int x, y;
342 int shape; 343 int shape;
343 XPoint border[ 3 ]; 344 XPoint border[ 3 ];
344 345