Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_video.c @ 4636:b196d2758026
Couriersud to Sam
Hi Sam,
20100815_1.diff contains updates for the directfb driver:
- more documentation, mainly on software OpenGL in README.directfb
- Revised error handling leading to leaner code
- Improved/fixed OpenGL handling of multiple contexts.
- Made the built-in simple window manager handle OpenGL windows.
- Rewrote pixelformat mapping - this was quite ugly before.
Well, all software GL, but working :-)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 16 Aug 2010 09:04:55 -0700 |
parents | 25b9cd8bdc30 |
children | 164f20ba08eb |
comparison
equal
deleted
inserted
replaced
4635:0a07d002f10b | 4636:b196d2758026 |
---|---|
207 DirectFBSetOption("system", "x11"); | 207 DirectFBSetOption("system", "x11"); |
208 else | 208 else |
209 DirectFBSetOption("disable-module", "x11input"); | 209 DirectFBSetOption("disable-module", "x11input"); |
210 } | 210 } |
211 | 211 |
212 #if USE_MULTI_API | 212 /* FIXME: Reenable as default once multi kbd/mouse interface is sorted out */ |
213 devdata->use_linux_input = 1; /* default: on */ | 213 devdata->use_linux_input = 0; /* default: on */ |
214 stemp = SDL_getenv(DFBENV_USE_LINUX_INPUT); | 214 stemp = SDL_getenv(DFBENV_USE_LINUX_INPUT); |
215 if (stemp) | 215 if (stemp) |
216 devdata->use_linux_input = atoi(stemp); | 216 devdata->use_linux_input = atoi(stemp); |
217 #else | |
218 devdata->use_linux_input = 0; /* no way to support this ... */ | |
219 #endif | |
220 | 217 |
221 if (!devdata->use_linux_input) | 218 if (!devdata->use_linux_input) |
222 DirectFBSetOption("disable-module", "linux_input"); | 219 DirectFBSetOption("disable-module", "linux_input"); |
223 | 220 |
224 SDL_DFB_CHECKERR(DirectFBCreate(&dfb)); | 221 SDL_DFB_CHECKERR(DirectFBCreate(&dfb)); |
251 else | 248 else |
252 devdata->has_own_wm = 0; | 249 devdata->has_own_wm = 0; |
253 | 250 |
254 devdata->dfb = dfb; | 251 devdata->dfb = dfb; |
255 devdata->firstwin = NULL; | 252 devdata->firstwin = NULL; |
253 devdata->grabbed_window = NULL; | |
256 | 254 |
257 _this->driverdata = devdata; | 255 _this->driverdata = devdata; |
258 | 256 |
259 DirectFB_InitModes(_this); | 257 DirectFB_InitModes(_this); |
260 | 258 |