summaryrefslogtreecommitdiffstats
path: root/xlib/ximage.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2007-01-02 23:39:40 (GMT)
committerdkf <dkf@noemail.net>2007-01-02 23:39:40 (GMT)
commit8d55943dd567b499fbf13c6dd8fb318bcfdf7f41 (patch)
treefe1ed7354a514a4e4ee8d144aaeb2c5a791f2211 /xlib/ximage.c
parent9576e62487c47e1510095641896a494a0943f627 (diff)
downloadtk-8d55943dd567b499fbf13c6dd8fb318bcfdf7f41.zip
tk-8d55943dd567b499fbf13c6dd8fb318bcfdf7f41.tar.gz
tk-8d55943dd567b499fbf13c6dd8fb318bcfdf7f41.tar.bz2
Made the generic fake-X11 glue layer abide by the formatting rules of the core.
FossilOrigin-Name: 8e1cb44484fe29e21b9608878ee59986f4070017
Diffstat (limited to 'xlib/ximage.c')
-rw-r--r--xlib/ximage.c37
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:
+ */