summaryrefslogtreecommitdiffstats
path: root/xlib/xdraw.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2007-01-02 23:39:40 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2007-01-02 23:39:40 (GMT)
commit16cdeeca7012af9595b161d13ef388051201b2d6 (patch)
treefe1ed7354a514a4e4ee8d144aaeb2c5a791f2211 /xlib/xdraw.c
parent24094b6d99ac2237ecedb34ca335ede7ca31dc46 (diff)
downloadtk-16cdeeca7012af9595b161d13ef388051201b2d6.zip
tk-16cdeeca7012af9595b161d13ef388051201b2d6.tar.gz
tk-16cdeeca7012af9595b161d13ef388051201b2d6.tar.bz2
Made the generic fake-X11 glue layer abide by the formatting rules of the core.
Diffstat (limited to 'xlib/xdraw.c')
-rw-r--r--xlib/xdraw.c52
1 files changed, 30 insertions, 22 deletions
diff --git a/xlib/xdraw.c b/xlib/xdraw.c
index 796f2f7..cf035de 100644
--- a/xlib/xdraw.c
+++ b/xlib/xdraw.c
@@ -1,15 +1,14 @@
-/*
+/*
* xdraw.c --
*
- * This file contains generic procedures related to X drawing
- * primitives.
+ * This file contains generic procedures related to X drawing primitives.
*
* Copyright (c) 1995 Sun Microsystems, Inc.
*
- * See the file "license.terms" for information on usage and redistribution
- * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
+ * See the file "license.terms" for information on usage and redistribution of
+ * this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: xdraw.c,v 1.4 1999/04/16 01:51:55 stanton Exp $
+ * RCS: @(#) $Id: xdraw.c,v 1.5 2007/01/02 23:39:40 dkf Exp $
*/
#include "tk.h"
@@ -19,7 +18,7 @@
*
* XDrawLine --
*
- * Draw a single line between two points in a given drawable.
+ * Draw a single line between two points in a given drawable.
*
* Results:
* None.
@@ -31,11 +30,12 @@
*/
void
-XDrawLine(display, d, gc, x1, y1, x2, y2)
- Display* display;
- Drawable d;
- GC gc;
- int x1, y1, x2, y2; /* Coordinates of line segment. */
+XDrawLine(
+ Display *display,
+ Drawable d,
+ GC gc,
+ int x1, int y1,
+ int x2, int y2) /* Coordinates of line segment. */
{
XPoint points[2];
@@ -51,8 +51,8 @@ XDrawLine(display, d, gc, x1, y1, x2, y2)
*
* XFillRectangle --
*
- * Fills a rectangular area in the given drawable. This procedure
- * is implemented as a call to XFillRectangles.
+ * Fills a rectangular area in the given drawable. This procedure is
+ * implemented as a call to XFillRectangles.
*
* Results:
* None
@@ -64,14 +64,14 @@ XDrawLine(display, d, gc, x1, y1, x2, y2)
*/
void
-XFillRectangle(display, d, gc, x, y, width, height)
- Display* display;
- Drawable d;
- GC gc;
- int x;
- int y;
- unsigned int width;
- unsigned int height;
+XFillRectangle(
+ Display *display,
+ Drawable d,
+ GC gc,
+ int x,
+ int y,
+ unsigned int width,
+ unsigned int height)
{
XRectangle rectangle;
rectangle.x = x;
@@ -80,3 +80,11 @@ XFillRectangle(display, d, gc, x, y, width, height)
rectangle.height = height;
XFillRectangles(display, d, gc, &rectangle, 1);
}
+
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 4
+ * fill-column: 78
+ * End:
+ */