diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-01-02 23:39:40 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-01-02 23:39:40 (GMT) |
commit | ba7fa40f47b2346070ac01a694ba15c111ffb9eb (patch) | |
tree | fe1ed7354a514a4e4ee8d144aaeb2c5a791f2211 /xlib/ximage.c | |
parent | aadf8edf5d05ece9302d1acfac6441d36798a9f8 (diff) | |
download | tk-ba7fa40f47b2346070ac01a694ba15c111ffb9eb.zip tk-ba7fa40f47b2346070ac01a694ba15c111ffb9eb.tar.gz tk-ba7fa40f47b2346070ac01a694ba15c111ffb9eb.tar.bz2 |
Made the generic fake-X11 glue layer abide by the formatting rules of the core.
Diffstat (limited to 'xlib/ximage.c')
-rw-r--r-- | xlib/ximage.c | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/xlib/ximage.c b/xlib/ximage.c index 97a79c1..6f0c7ee 100644 --- a/xlib/ximage.c +++ b/xlib/ximage.c @@ -1,18 +1,17 @@ -/* +/* * ximage.c -- * * X bitmap and image routines. * * 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: ximage.c,v 1.5 2004/02/23 10:48:11 das Exp $ + * RCS: @(#) $Id: ximage.c,v 1.6 2007/01/02 23:39:40 dkf Exp $ */ #include "tkInt.h" - /* *---------------------------------------------------------------------- @@ -21,10 +20,10 @@ * * Construct a single plane pixmap from bitmap data. * - * NOTE: This procedure has the correct behavior on Windows and - * the Macintosh, but not on UNIX. This is probably because the - * emulation for XPutImage on those platforms compensates for whatever - * is wrong here :-) + * NOTE: This procedure has the correct behavior on Windows and the + * Macintosh, but not on UNIX. This is probably because the emulation for + * XPutImage on those platforms compensates for whatever is wrong here + * :-) * * Results: * Returns a new Pixmap. @@ -36,12 +35,12 @@ */ Pixmap -XCreateBitmapFromData(display, d, data, width, height) - Display* display; - Drawable d; - _Xconst char* data; - unsigned int width; - unsigned int height; +XCreateBitmapFromData( + Display *display, + Drawable d, + _Xconst char *data, + unsigned int width, + unsigned int height) { XImage ximage; GC gc; @@ -72,3 +71,11 @@ XCreateBitmapFromData(display, d, data, width, height) XFreeGC(display, gc); return pix; } + +/* + * Local Variables: + * mode: c + * c-basic-offset: 4 + * fill-column: 78 + * End: + */ |