src/video/ps2gs/SDL_gsmouse_c.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 2859 99210400e8b9
permissions -rw-r--r--
Fixed bug #906

Added better error reporting for OpenGL context creation failing.
slouken@70
     1
/*
slouken@70
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@70
     4
slouken@70
     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@70
     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@70
     9
slouken@70
    10
    This library is distributed in the hope that it will be useful,
slouken@70
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@70
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@70
    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@70
    18
slouken@70
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@70
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@70
    23
slouken@70
    24
#include "SDL_gsvideo.h"
slouken@70
    25
slouken@70
    26
/* This is the maximum size of the cursor sprite */
slouken@70
    27
#define CURSOR_W	32
slouken@70
    28
#define CURSOR_H	32
slouken@1895
    29
#define CURSOR_W_POW	5       /* 32 = 2^5 */
slouken@1895
    30
#define CURSOR_H_POW	5       /* 32 = 2^5 */
slouken@70
    31
slouken@70
    32
/* Functions to be exported */
slouken@1895
    33
extern void GS_FreeWMCursor(_THIS, WMcursor * cursor);
slouken@70
    34
extern WMcursor *GS_CreateWMCursor(_THIS,
slouken@1895
    35
                                   Uint8 * data, Uint8 * mask, int w, int h,
slouken@1895
    36
                                   int hot_x, int hot_y);
slouken@70
    37
extern void GS_MoveWMCursor(_THIS, int x, int y);
slouken@1895
    38
extern int GS_ShowWMCursor(_THIS, WMcursor * cursor);
slouken@1895
    39
/* vi: set ts=4 sw=4 expandtab: */