comparison src/video/directfb/SDL_DirectFB_video.h @ 3038:c73a5f8a03d2

Fixed MakeSubSurface compiling issue for DirectFB <= 1.2.0
author Couriersud <couriersud@arcor.de>
date Tue, 13 Jan 2009 22:59:02 +0000
parents 490f3e4fe753
children 62d4992e5a92
comparison
equal deleted inserted replaced
3037:490f3e4fe753 3038:c73a5f8a03d2
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 ) { 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 ) { 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 ) { x->Unlock(x); } } while (0) 76 #define SDL_DFB_UNLOCK(x) do { if ( (x) != NULL ) { x->Unlock(x); } } while (0)
77 77
78 #if DEBUG 78 #if DEBUG
79 #define SDL_DFB_DEBUG(x...) do { fprintf(LOG_CHANNEL, "%s:", __FUNCTION__); fprintf(LOG_CHANNEL, x); } while (0) 79 #define SDL_DFB_DEBUG(x...) do { fprintf(LOG_CHANNEL, "%s:", __FUNCTION__); fprintf(LOG_CHANNEL, x); } while (0)
80 #define SDL_DFB_DEBUGC(x...) do { fprintf(LOG_CHANNEL, x); } while (0) 80 #define SDL_DFB_DEBUGC(x...) do { fprintf(LOG_CHANNEL, x); } while (0)
81 #else 81 #else