Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_video.h @ 2998:d364ee9b9c15
Date: Sun, 04 Jan 2009 20:53:30 +0100
From: Couriersud
Subject: SDL1.3 DirectFB patches
The attached contains the following directfb changes:
- Dynamic loading of libdirectfb.so. This may to turned off as well in configure
- Use linux-input by default. May be switched off by environment variable.
- Added some code which will use directfb's x11 backend when DISPLAY is set.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2009 23:43:33 +0000 |
parents | 6ce28e5287e9 |
children | d72a0dd80e8b |
comparison
equal
deleted
inserted
replaced
2997:e4f025078c1c | 2998:d364ee9b9c15 |
---|---|
29 #include <directfb.h> | 29 #include <directfb.h> |
30 #include <directfb_version.h> | 30 #include <directfb_version.h> |
31 | 31 |
32 #include "SDL_mouse.h" | 32 #include "SDL_mouse.h" |
33 | 33 |
34 #define LINUX_INPUT_SUPPORT 1 | |
35 | |
36 #define DEBUG 0 | 34 #define DEBUG 0 |
37 #define LOG_CHANNEL stdout | 35 #define LOG_CHANNEL stdout |
38 | 36 |
39 #if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23) | 37 #if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23) |
40 #error "SDL_DIRECTFB: Please compile against libdirectfb version >=0.9.24" | 38 #error "SDL_DIRECTFB: Please compile against libdirectfb version >=0.9.24" |
57 #include "SDL_DirectFB_modes.h" | 55 #include "SDL_DirectFB_modes.h" |
58 #include "SDL_DirectFB_mouse.h" | 56 #include "SDL_DirectFB_mouse.h" |
59 #include "SDL_DirectFB_opengl.h" | 57 #include "SDL_DirectFB_opengl.h" |
60 #include "SDL_DirectFB_window.h" | 58 #include "SDL_DirectFB_window.h" |
61 | 59 |
62 #define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY" | 60 #define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY" /* Default: off */ |
63 #define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT" | 61 #define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT" /* Default: off */ |
62 #define DFBENV_USE_X11_CHECK "SDL_DIRECTFB_X11_CHECK" /* Default: on */ | |
63 #define DFBENV_USE_LINUX_INPUT "SDL_DIRECTFB_LINUX_INPUT" /* Default: on */ | |
64 | 64 |
65 #define SDL_DFB_RELEASE(x) do { if ( x ) { x->Release(x); x = NULL; } } while (0) | 65 #define SDL_DFB_RELEASE(x) do { if ( x ) { x->Release(x); x = NULL; } } while (0) |
66 #define SDL_DFB_FREE(x) do { if ( x ) { SDL_free(x); x = NULL; } } while (0) | 66 #define SDL_DFB_FREE(x) do { if ( x ) { SDL_free(x); x = NULL; } } while (0) |
67 #define SDL_DFB_UNLOCK(x) do { if ( x ) { x->Unlock(x); } } while (0) | 67 #define SDL_DFB_UNLOCK(x) do { if ( x ) { x->Unlock(x); } } while (0) |
68 | 68 |
135 int id; | 135 int id; |
136 } keyboard[10]; | 136 } keyboard[10]; |
137 DFB_WindowData *firstwin; | 137 DFB_WindowData *firstwin; |
138 | 138 |
139 int use_yuv_underlays; | 139 int use_yuv_underlays; |
140 int use_linux_input; | |
140 | 141 |
141 /* OpenGL */ | 142 /* OpenGL */ |
142 void (*glFinish) (void); | 143 void (*glFinish) (void); |
143 void (*glFlush) (void); | 144 void (*glFlush) (void); |
144 | 145 |