src/events/default_cursor.h
branchSDL-1.3
changeset 1671 89f7510fe17a
child 2698 e1da92da346c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/events/default_cursor.h	Fri Jun 09 06:42:42 2006 +0000
     1.3 @@ -0,0 +1,113 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2006 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
    1.27 + * Default cursor - it happens to be the Mac cursor, but could be anything   */
    1.28 +
    1.29 +#define DEFAULT_CWIDTH	16
    1.30 +#define DEFAULT_CHEIGHT	16
    1.31 +#define DEFAULT_CHOTX	0
    1.32 +#define DEFAULT_CHOTY	0
    1.33 +
    1.34 +/* Added a real MacOS cursor, at the request of Luc-Olivier de Charrière */
    1.35 +#define USE_MACOS_CURSOR
    1.36 +
    1.37 +#ifdef USE_MACOS_CURSOR
    1.38 +
    1.39 +static unsigned char default_cdata[] = {
    1.40 +    0x00, 0x00,
    1.41 +    0x40, 0x00,
    1.42 +    0x60, 0x00,
    1.43 +    0x70, 0x00,
    1.44 +    0x78, 0x00,
    1.45 +    0x7C, 0x00,
    1.46 +    0x7E, 0x00,
    1.47 +    0x7F, 0x00,
    1.48 +    0x7F, 0x80,
    1.49 +    0x7C, 0x00,
    1.50 +    0x6C, 0x00,
    1.51 +    0x46, 0x00,
    1.52 +    0x06, 0x00,
    1.53 +    0x03, 0x00,
    1.54 +    0x03, 0x00,
    1.55 +    0x00, 0x00
    1.56 +};
    1.57 +static unsigned char default_cmask[] = {
    1.58 +    0xC0, 0x00,
    1.59 +    0xE0, 0x00,
    1.60 +    0xF0, 0x00,
    1.61 +    0xF8, 0x00,
    1.62 +    0xFC, 0x00,
    1.63 +    0xFE, 0x00,
    1.64 +    0xFF, 0x00,
    1.65 +    0xFF, 0x80,
    1.66 +    0xFF, 0xC0,
    1.67 +    0xFF, 0xE0,
    1.68 +    0xFE, 0x00,
    1.69 +    0xEF, 0x00,
    1.70 +    0xCF, 0x00,
    1.71 +    0x87, 0x80,
    1.72 +    0x07, 0x80,
    1.73 +    0x03, 0x00
    1.74 +};
    1.75 +
    1.76 +#else
    1.77 +
    1.78 +static unsigned char default_cdata[] = {
    1.79 +    0x00, 0x00,
    1.80 +    0x40, 0x00,
    1.81 +    0x60, 0x00,
    1.82 +    0x70, 0x00,
    1.83 +    0x78, 0x00,
    1.84 +    0x7C, 0x00,
    1.85 +    0x7E, 0x00,
    1.86 +    0x7F, 0x00,
    1.87 +    0x7F, 0x80,
    1.88 +    0x7C, 0x00,
    1.89 +    0x6C, 0x00,
    1.90 +    0x46, 0x00,
    1.91 +    0x06, 0x00,
    1.92 +    0x03, 0x00,
    1.93 +    0x03, 0x00,
    1.94 +    0x00, 0x00
    1.95 +};
    1.96 +static unsigned char default_cmask[] = {
    1.97 +    0x40, 0x00,
    1.98 +    0xE0, 0x00,
    1.99 +    0xF0, 0x00,
   1.100 +    0xF8, 0x00,
   1.101 +    0xFC, 0x00,
   1.102 +    0xFE, 0x00,
   1.103 +    0xFF, 0x00,
   1.104 +    0xFF, 0x80,
   1.105 +    0xFF, 0xC0,
   1.106 +    0xFF, 0x80,
   1.107 +    0xFE, 0x00,
   1.108 +    0xEF, 0x00,
   1.109 +    0x4F, 0x00,
   1.110 +    0x07, 0x80,
   1.111 +    0x07, 0x80,
   1.112 +    0x03, 0x00
   1.113 +};
   1.114 +
   1.115 +#endif /* TRUE_MACINTOSH_CURSOR */
   1.116 +/* vi: set ts=4 sw=4 expandtab: */