diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-11-15 15:18:21 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-11-15 15:18:21 (GMT) |
commit | 880c27d88e6fe14e3834ff5403249e1fe7b1bf74 (patch) | |
tree | 7807395c24a76cc57ed6ff2e3510a03e04efbc37 /generic/tkImgUtil.c | |
parent | 510452cedeeebfa59bfb1f13e86e74a6bc287320 (diff) | |
download | tk-880c27d88e6fe14e3834ff5403249e1fe7b1bf74.zip tk-880c27d88e6fe14e3834ff5403249e1fe7b1bf74.tar.gz tk-880c27d88e6fe14e3834ff5403249e1fe7b1bf74.tar.bz2 |
ANSIfy
Diffstat (limited to 'generic/tkImgUtil.c')
-rw-r--r-- | generic/tkImgUtil.c | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/generic/tkImgUtil.c b/generic/tkImgUtil.c index d5635aa..708a374 100644 --- a/generic/tkImgUtil.c +++ b/generic/tkImgUtil.c @@ -1,14 +1,14 @@ -/* +/* * tkImgUtil.c -- * * This file contains image related utility functions. * * 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: tkImgUtil.c,v 1.3 2004/01/13 02:06:00 davygrvy Exp $ + * RCS: @(#) $Id: tkImgUtil.c,v 1.4 2005/11/15 15:18:21 dkf Exp $ */ #include "tkInt.h" @@ -21,12 +21,11 @@ * * TkAlignImageData -- * - * This function takes an image and copies the data into an - * aligned buffer, performing any necessary bit swapping. + * This function takes an image and copies the data into an aligned + * buffer, performing any necessary bit swapping. * * Results: - * Returns a newly allocated buffer that should be freed by the - * caller. + * Returns a newly allocated buffer that should be freed by the caller. * * Side effects: * None. @@ -35,18 +34,19 @@ */ char * -TkAlignImageData(image, alignment, bitOrder) - XImage *image; /* Image to be aligned. */ - int alignment; /* Number of bytes to which the data should - * be aligned (e.g. 2 or 4) */ - int bitOrder; /* Desired bit order: LSBFirst or MSBFirst. */ +TkAlignImageData( + XImage *image, /* Image to be aligned. */ + int alignment, /* Number of bytes to which the data should be + * aligned (e.g. 2 or 4) */ + int bitOrder) /* Desired bit order: LSBFirst or MSBFirst. */ { long dataWidth; char *data, *srcPtr, *destPtr; int i, j; if (image->bits_per_pixel != 1) { - Tcl_Panic("TkAlignImageData: Can't handle image depths greater than 1."); + Tcl_Panic( + "TkAlignImageData: Can't handle image depths greater than 1."); } /* @@ -76,3 +76,11 @@ TkAlignImageData(image, alignment, bitOrder) } return data; } + +/* + * Local Variables: + * mode: c + * c-basic-offset: 4 + * fill-column: 78 + * End: + */ |