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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403460
This commit is contained in:
Sam Lantinga 2009-01-04 23:43:33 +00:00
parent ba8f64f259
commit 7c0f19e5aa
8 changed files with 98 additions and 26 deletions

View file

@ -31,8 +31,6 @@
#include "SDL_mouse.h"
#define LINUX_INPUT_SUPPORT 1
#define DEBUG 0
#define LOG_CHANNEL stdout
@ -59,8 +57,10 @@
#include "SDL_DirectFB_opengl.h"
#include "SDL_DirectFB_window.h"
#define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY"
#define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT"
#define DFBENV_USE_YUV_UNDERLAY "SDL_DIRECTFB_YUV_UNDERLAY" /* Default: off */
#define DFBENV_USE_YUV_DIRECT "SDL_DIRECTFB_YUV_DIRECT" /* Default: off */
#define DFBENV_USE_X11_CHECK "SDL_DIRECTFB_X11_CHECK" /* Default: on */
#define DFBENV_USE_LINUX_INPUT "SDL_DIRECTFB_LINUX_INPUT" /* Default: on */
#define SDL_DFB_RELEASE(x) do { if ( x ) { x->Release(x); x = NULL; } } while (0)
#define SDL_DFB_FREE(x) do { if ( x ) { SDL_free(x); x = NULL; } } while (0)
@ -137,6 +137,7 @@ struct _DFB_DeviceData
DFB_WindowData *firstwin;
int use_yuv_underlays;
int use_linux_input;
/* OpenGL */
void (*glFinish) (void);