src/video/default_cursor.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 08:58:51 +0000
branchSDL-1.2
changeset 4214 4250beeb5ad1
parent 4159 a1b03ba2fcd0
child 6137 4720145f848b
permissions -rw-r--r--
Oh yeah, we have GLX support too.
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@4159
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@0
     4
slouken@0
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@0
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@0
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@0
    22
slouken@0
    23
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
slouken@0
    24
 * Default cursor - it happens to be the Mac cursor, but could be anything   */
slouken@0
    25
slouken@0
    26
#define DEFAULT_CWIDTH	16
slouken@0
    27
#define DEFAULT_CHEIGHT	16
slouken@0
    28
#define DEFAULT_CHOTX	0
slouken@0
    29
#define DEFAULT_CHOTY	0
slouken@0
    30
slouken@0
    31
/* Added a real MacOS cursor, at the request of Luc-Olivier de Charrière */
slouken@0
    32
#define USE_MACOS_CURSOR
slouken@0
    33
slouken@0
    34
#ifdef USE_MACOS_CURSOR
slouken@0
    35
slouken@0
    36
static unsigned char default_cdata[] =
slouken@0
    37
{
slouken@0
    38
 0x00,0x00,
slouken@0
    39
 0x40,0x00,
slouken@0
    40
 0x60,0x00,
slouken@0
    41
 0x70,0x00,
slouken@0
    42
 0x78,0x00,
slouken@0
    43
 0x7C,0x00,
slouken@0
    44
 0x7E,0x00,
slouken@0
    45
 0x7F,0x00,
slouken@0
    46
 0x7F,0x80,
slouken@0
    47
 0x7C,0x00,
slouken@0
    48
 0x6C,0x00,
slouken@0
    49
 0x46,0x00,
slouken@0
    50
 0x06,0x00,
slouken@0
    51
 0x03,0x00,
slouken@0
    52
 0x03,0x00,
slouken@0
    53
 0x00,0x00
slouken@0
    54
};
slouken@0
    55
static unsigned char default_cmask[] =
slouken@0
    56
{
slouken@0
    57
 0xC0,0x00,
slouken@0
    58
 0xE0,0x00,
slouken@0
    59
 0xF0,0x00,
slouken@0
    60
 0xF8,0x00,
slouken@0
    61
 0xFC,0x00,
slouken@0
    62
 0xFE,0x00,
slouken@0
    63
 0xFF,0x00,
slouken@0
    64
 0xFF,0x80,
slouken@0
    65
 0xFF,0xC0,
slouken@0
    66
 0xFF,0xE0,
slouken@0
    67
 0xFE,0x00,
slouken@0
    68
 0xEF,0x00,
slouken@0
    69
 0xCF,0x00,
slouken@0
    70
 0x87,0x80,
slouken@0
    71
 0x07,0x80,
slouken@0
    72
 0x03,0x00
slouken@0
    73
};
slouken@0
    74
slouken@0
    75
#else
slouken@0
    76
slouken@0
    77
static unsigned char default_cdata[] =
slouken@0
    78
{
slouken@0
    79
 0x00,0x00,
slouken@0
    80
 0x40,0x00,
slouken@0
    81
 0x60,0x00,
slouken@0
    82
 0x70,0x00,
slouken@0
    83
 0x78,0x00,
slouken@0
    84
 0x7C,0x00,
slouken@0
    85
 0x7E,0x00,
slouken@0
    86
 0x7F,0x00,
slouken@0
    87
 0x7F,0x80,
slouken@0
    88
 0x7C,0x00,
slouken@0
    89
 0x6C,0x00,
slouken@0
    90
 0x46,0x00,
slouken@0
    91
 0x06,0x00,
slouken@0
    92
 0x03,0x00,
slouken@0
    93
 0x03,0x00,
slouken@0
    94
 0x00,0x00
slouken@0
    95
};
slouken@0
    96
static unsigned char default_cmask[] =
slouken@0
    97
{
slouken@0
    98
 0x40,0x00,
slouken@0
    99
 0xE0,0x00,
slouken@0
   100
 0xF0,0x00,
slouken@0
   101
 0xF8,0x00,
slouken@0
   102
 0xFC,0x00,
slouken@0
   103
 0xFE,0x00,
slouken@0
   104
 0xFF,0x00,
slouken@0
   105
 0xFF,0x80,
slouken@0
   106
 0xFF,0xC0,
slouken@0
   107
 0xFF,0x80,
slouken@0
   108
 0xFE,0x00,
slouken@0
   109
 0xEF,0x00,
slouken@0
   110
 0x4F,0x00,
slouken@0
   111
 0x07,0x80,
slouken@0
   112
 0x07,0x80,
slouken@0
   113
 0x03,0x00
slouken@0
   114
};
slouken@0
   115
slouken@0
   116
#endif /* TRUE_MACINTOSH_CURSOR */