comparison src/video/directfb/SDL_DirectFB_mouse.h @ 5202:164f20ba08eb

Updated the DirectFB support, from Couriersud attached is a working directfb driver diff which works with the current changes. There are a number of changes around it as well, e.g. configure.in. The directfb renderdriver right now still depends on a some "includes" from src/video/directfb. That's why it is not yet moved to the new render folder.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Feb 2011 16:07:10 -0800
parents f7b03b6838cb
children b530ef003506
comparison
equal deleted inserted replaced
5201:7c3422025c35 5202:164f20ba08eb
16 License along with this library; if not, write to the Free Software 16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21
22 SDL1.3 DirectFB driver by couriersud@arcor.de
23
21 */ 24 */
22 #include "SDL_config.h"
23 25
24 #ifndef _SDL_DirectFB_mouse_h 26 #ifndef _SDL_DirectFB_mouse_h
25 #define _SDL_DirectFB_mouse_h 27 #define _SDL_DirectFB_mouse_h
26 28
29 #include <directfb.h>
30
31 #include "../SDL_sysvideo.h"
32
27 typedef struct _DFB_CursorData DFB_CursorData; 33 typedef struct _DFB_CursorData DFB_CursorData;
28
29 struct _DFB_CursorData 34 struct _DFB_CursorData
30 { 35 {
31 IDirectFBSurface *surf; 36 IDirectFBSurface *surf;
32 int hotx; 37 int hotx;
33 int hoty; 38 int hoty;
34 }; 39 };
35 40
36 #define SDL_DFB_CURSORDATA(curs) DFB_CursorData *curdata = (DFB_CursorData *) ((curs) ? (curs)->driverdata : NULL) 41 #define SDL_DFB_CURSORDATA(curs) DFB_CursorData *curdata = (DFB_CursorData *) ((curs) ? (curs)->driverdata : NULL)
37 42
38 extern void DirectFB_InitMouse(_THIS); 43 extern void DirectFB_InitMouse(_THIS);