Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_video.h @ 3040:62d4992e5a92
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 14 Jan 2009 04:25:32 +0000 |
parents | c73a5f8a03d2 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3039:829043b363d1 | 3040:62d4992e5a92 |
---|---|
42 | 42 |
43 #define DFB_VERSION_ATLEAST(X, Y, Z) \ | 43 #define DFB_VERSION_ATLEAST(X, Y, Z) \ |
44 (DFB_COMPILEDVERSION >= DFB_VERSIONNUM(X, Y, Z)) | 44 (DFB_COMPILEDVERSION >= DFB_VERSIONNUM(X, Y, Z)) |
45 | 45 |
46 #if (DFB_VERSION_ATLEAST(1,0,0)) | 46 #if (DFB_VERSION_ATLEAST(1,0,0)) |
47 #define SDL_DIRECTFB_OPENGL 1 | 47 #define SDL_DIRECTFB_OPENGL 1 |
48 #include <directfbgl.h> | 48 #include <directfbgl.h> |
49 #else | 49 #else |
50 #error "SDL_DIRECTFB: Please compile against libdirectfb version >= 1.0.0" | 50 #error "SDL_DIRECTFB: Please compile against libdirectfb version >= 1.0.0" |
51 #endif | 51 #endif |
52 | 52 |
53 #if SDL_DIRECTFB_OPENGL | 53 #if SDL_DIRECTFB_OPENGL |
54 #include "SDL_loadso.h" | 54 #include "SDL_loadso.h" |
55 #endif | 55 #endif |
67 | 67 |
68 #define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY" /* Default: off */ | 68 #define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY" /* Default: off */ |
69 #define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT" /* Default: off */ | 69 #define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT" /* Default: off */ |
70 #define DFBENV_USE_X11_CHECK "SDL_DIRECTFB_X11_CHECK" /* Default: on */ | 70 #define DFBENV_USE_X11_CHECK "SDL_DIRECTFB_X11_CHECK" /* Default: on */ |
71 #define DFBENV_USE_LINUX_INPUT "SDL_DIRECTFB_LINUX_INPUT" /* Default: on */ | 71 #define DFBENV_USE_LINUX_INPUT "SDL_DIRECTFB_LINUX_INPUT" /* Default: on */ |
72 #define DFBENV_USE_WM "SDL_DIRECTFB_WM" /* Default: off */ | 72 #define DFBENV_USE_WM "SDL_DIRECTFB_WM" /* Default: off */ |
73 | 73 |
74 #define SDL_DFB_RELEASE(x) do { if ( (x) != NULL ) { x->Release(x); x = NULL; } } while (0) | 74 #define SDL_DFB_RELEASE(x) do { if ( (x) != NULL ) { x->Release(x); x = NULL; } } while (0) |
75 #define SDL_DFB_FREE(x) do { if ( (x) != NULL ) { SDL_free(x); x = NULL; } } while (0) | 75 #define SDL_DFB_FREE(x) do { if ( (x) != NULL ) { SDL_free(x); x = NULL; } } while (0) |
76 #define SDL_DFB_UNLOCK(x) do { if ( (x) != NULL ) { x->Unlock(x); } } while (0) | 76 #define SDL_DFB_UNLOCK(x) do { if ( (x) != NULL ) { x->Unlock(x); } } while (0) |
77 | 77 |