[PATCH v2 1/2] cursor: Add a default cursor theme

Kristian Høgsberg hoegsberg at gmail.com
Mon Sep 10 18:08:53 PDT 2012


On Thu, Sep 06, 2012 at 06:54:01PM +0200, Philipp Brüschweiler wrote:
> This theme is loaded when the specified cursor theme can not be found.
> 
> These cursors are extracted from the xorg sources and transformed into
> raw ARGB data by a small helper program (commited separately).

Yup, this and 2/2 looks good now, applied.

> ---
>  cursor/cursor_data.c    | 548 ++++++++++++++++++++++++++++++++++++++++++++++++
>  cursor/wayland-cursor.c |  71 ++++++-
>  2 Dateien geändert, 618 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
>  create mode 100644 cursor/cursor_data.c
> 
> diff --git a/cursor/cursor_data.c b/cursor/cursor_data.c
> new file mode 100644
> index 0000000..4c5e672
> --- /dev/null
> +++ b/cursor/cursor_data.c
> @@ -0,0 +1,548 @@
> +/*
> +* Copyright 1999 SuSE, Inc.
> +*
> +* Permission to use, copy, modify, distribute, and sell this software and its
> +* documentation for any purpose is hereby granted without fee, provided that
> +* the above copyright notice appear in all copies and that both that
> +* copyright notice and this permission notice appear in supporting
> +* documentation, and that the name of SuSE not be used in advertising or
> +* publicity pertaining to distribution of the software without specific,
> +* written prior permission.  SuSE makes no representations about the
> +* suitability of this software for any purpose.  It is provided "as is"
> +* without express or implied warranty.
> +*
> +* SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
> +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
> +* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
> +* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
> +* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
> +* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
> +*
> +* Author:  Keith Packard, SuSE, Inc.
> +*/
> +
> +static uint32_t cursor_data[] = {
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0xffffffff, 0xff000000, 0xffffffff, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0x00000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0xff000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xffffffff, 0xffffffff, 0xffffffff, 
> +	0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xffffffff, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 0xffffffff, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xffffffff, 
> +	0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 
> +	0xffffffff, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 0xff000000, 
> +	0xff000000, 0xff000000, 0xff000000, 0xffffffff, 0x00000000, 0x00000000, 
> +	0x00000000, 0x00000000, 
> +};
> +
> +static struct cursor_metadata {
> +	char *name;
> +	int width, height;
> +	int hotspot_x, hotspot_y;
> +	size_t offset;
> +} cursor_metadata[] = {
> +	{ "bottom_left_corner", 16, 16, 1, 14, 0 },
> +	{ "bottom_right_corner", 16, 16, 14, 14, 256 },
> +	{ "bottom_side", 15, 16, 7, 14, 512 },
> +	{ "grabbing", 16, 16, 8, 8, 752 },
> +	{ "left_ptr", 10, 16, 1, 1, 1008 },
> +	{ "left_side", 16, 15, 1, 7, 1168 },
> +	{ "right_side", 16, 15, 14, 7, 1408 },
> +	{ "top_left_corner", 16, 16, 1, 1, 1648 },
> +	{ "top_right_corner", 16, 16, 14, 1, 1904 },
> +	{ "top_side", 15, 16, 7, 1, 2160 },
> +	{ "xterm", 9, 16, 4, 8, 2400 },
> +	{ "hand1", 13, 16, 12, 0, 2544 },
> +	{ "watch", 16, 16, 15, 9, 2752 },
> +};
> diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c
> index 186ab6f..33fed04 100644
> --- a/cursor/wayland-cursor.c
> +++ b/cursor/wayland-cursor.c
> @@ -181,6 +181,71 @@ wl_cursor_destroy(struct wl_cursor *cursor)
>  	free(cursor);
>  }
>  
> +#include "cursor_data.c"
> +
> +static struct wl_cursor *
> +wl_cursor_create_from_data(struct cursor_metadata *metadata,
> +			   struct wl_cursor_theme *theme)
> +{
> +	struct cursor *cursor;
> +	struct cursor_image *image;
> +	int size;
> +
> +	cursor = malloc(sizeof *cursor);
> +	if (!cursor)
> +		return NULL;
> +
> +	cursor->cursor.image_count = 1;
> +	cursor->cursor.images = malloc(sizeof *cursor->cursor.images);
> +	if (!cursor->cursor.images) {
> +		free(cursor);
> +		return NULL;
> +	}
> +
> +	cursor->cursor.name = strdup(metadata->name);
> +	cursor->total_delay = 0;
> +
> +	image = malloc(sizeof *image);
> +	if (!image) {
> +		free(cursor->cursor.name);
> +		free(cursor->cursor.images);
> +		free(cursor);
> +		return NULL;
> +	}
> +
> +	cursor->cursor.images[0] = (struct wl_cursor_image *) image;
> +	image->theme = theme;
> +	image->buffer = NULL;
> +	image->image.width = metadata->width;
> +	image->image.height = metadata->height;
> +	image->image.hotspot_x = metadata->hotspot_x;
> +	image->image.hotspot_y = metadata->hotspot_y;
> +	image->image.delay = 0;
> +
> +	size = metadata->width * metadata->height * sizeof(uint32_t);
> +	image->offset = shm_pool_allocate(theme->pool, size);
> +	memcpy(theme->pool->data + image->offset,
> +	       cursor_data + metadata->offset, size);
> +
> +	return &cursor->cursor;
> +}
> +
> +static void
> +load_default_theme(struct wl_cursor_theme *theme)
> +{
> +	uint32_t i;
> +
> +	free(theme->name);
> +	theme->name = strdup("default");
> +
> +	theme->cursor_count = ARRAY_LENGTH(cursor_metadata);;
> +	theme->cursors = malloc(theme->cursor_count * sizeof(*theme->cursors));
> +
> +	for (i = 0; i < theme->cursor_count; ++i)
> +		theme->cursors[i] =
> +			wl_cursor_create_from_data(&cursor_metadata[i], theme);
> +}
> +
>  static struct wl_cursor *
>  wl_cursor_create_from_xcursor_images(XcursorImages *images,
>  				     struct wl_cursor_theme *theme)
> @@ -261,7 +326,8 @@ load_callback(XcursorImages *images, void *data)
>   * \param shm The compositor's shm interface.
>   *
>   * \return An object representing the theme that should be destroyed with
> - * wl_cursor_theme_destroy() or %NULL on error.
> + * wl_cursor_theme_destroy() or %NULL on error. If no theme with the given
> + * name exists, a default theme will be loaded.
>   */
>  WL_EXPORT struct wl_cursor_theme *
>  wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
> @@ -290,6 +356,9 @@ wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
>  
>  	xcursor_load_theme(name, size, load_callback, theme);
>  
> +	if (theme->cursor_count == 0)
> +		load_default_theme(theme);
> +
>  	return theme;
>  }
>  
> -- 
> 1.7.12
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list