summaryrefslogtreecommitdiff
path: root/src/GetImage.c
diff options
context:
space:
mode:
authorMagnus Kessler <Magnus.Kessler@gmx.net>2007-05-01 15:20:08 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2007-05-01 15:20:08 +0200
commita48386ce6b5f8fd2d9dc11a966c9bf5da59f3831 (patch)
treee842646f7797fc74070b1bd9ead7861b5b6b752d /src/GetImage.c
parent605d357074d556a05a3fba2e85cbea36a3204248 (diff)
Switched function definitions from K&R to ANSI style.
Diffstat (limited to 'src/GetImage.c')
-rw-r--r--src/GetImage.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/src/GetImage.c b/src/GetImage.c
index ffe9d226..4a376c67 100644
--- a/src/GetImage.c
+++ b/src/GetImage.c
@@ -46,13 +46,15 @@ static unsigned int Ones( /* HACKMEM 169 */
return ((unsigned int) (((y + (y >> 3)) & 030707070707) % 077));
}
-XImage *XGetImage (dpy, d, x, y, width, height, plane_mask, format)
- register Display *dpy;
- Drawable d;
- int x, y;
- unsigned int width, height;
- unsigned long plane_mask;
- int format; /* either XYPixmap or ZPixmap */
+XImage *XGetImage (
+ register Display *dpy,
+ Drawable d,
+ int x,
+ int y,
+ unsigned int width,
+ unsigned int height,
+ unsigned long plane_mask,
+ int format) /* either XYPixmap or ZPixmap */
{
xGetImageReply rep;
register xGetImageReq *req;
@@ -105,16 +107,18 @@ XImage *XGetImage (dpy, d, x, y, width, height, plane_mask, format)
return (image);
}
-XImage *XGetSubImage(dpy, d, x, y, width, height, plane_mask, format,
- dest_image, dest_x, dest_y)
- register Display *dpy;
- Drawable d;
- int x, y;
- unsigned int width, height;
- unsigned long plane_mask;
- int format; /* either XYPixmap or ZPixmap */
- XImage *dest_image;
- int dest_x, dest_y;
+XImage *XGetSubImage(
+ register Display *dpy,
+ Drawable d,
+ int x,
+ int y,
+ unsigned int width,
+ unsigned int height,
+ unsigned long plane_mask,
+ int format, /* either XYPixmap or ZPixmap */
+ XImage *dest_image,
+ int dest_x,
+ int dest_y)
{
XImage *temp_image;
temp_image = XGetImage(dpy, d, x, y, width, height,