/*****************************************************************************
- * x264: x11 interface for visualization module
+ * display-x11.c: x11 interface
*****************************************************************************
- * Copyright (C) 2005 Tuukka Toivonen <tuukkat@ee.oulu.fi>
+ * Copyright (C) 2005-2011 x264 project
+ *
+ * Authors: Tuukka Toivonen <tuukkat@ee.oulu.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
+ *
+ * This program is also available under a commercial proprietary license.
+ * For more information, contact us at licensing@x264.com.
*****************************************************************************/
#include <X11/Xlib.h>
int dpy_depth = DefaultDepth( disp_display, screen );
XImage *ximage = XCreateImage( disp_display, visual, dpy_depth, ZPixmap, 0, &dummy, width, height, 8, 0 );
disp_chkerror( !ximage, "no ximage" );
-#ifdef WORDS_BIGENDIAN
+#if WORDS_BIGENDIAN
ximage->byte_order = MSBFirst;
ximage->bitmap_bit_order = MSBFirst;
#else