DirectFB cleanups & simple window manager
- use SDL_getenv, not getenv ... - no more support for 0.9.25 - not even mentioned any longer on directfb.org - fix fullscreen issues - add a simple window manager unless the directfb team comes up with a working wm. The driver has support for a very, very basic window manager you may want to use when runnning with "wm=default". Use export SDL_DIRECTFB_WM=1 to enable basic window borders including icon support. In order to have the window title rendered, you need to have the following font installed: /usr/share/fonts/truetype/freefont/FreeSans.ttf --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403485
This commit is contained in:
parent
3e968cec07
commit
2cd9219893
14 changed files with 1172 additions and 515 deletions
|
@ -173,8 +173,8 @@ DirectFB_GL_CreateContext(_THIS, SDL_Window * window)
|
|||
|
||||
SDL_DFB_CALLOC(context, 1, sizeof(*context));
|
||||
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
GetGL(windata->surface, &context->context));
|
||||
SDL_DFB_CHECKERR(windata->surface->GetGL(windata->surface,
|
||||
&context->context));
|
||||
|
||||
if (!context->context)
|
||||
return NULL;
|
||||
|
@ -208,16 +208,9 @@ DirectFB_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
|||
p->context->Unlock(p->context);
|
||||
|
||||
if (windata) {
|
||||
int cw, ch;
|
||||
|
||||
windata->gl_context = NULL;
|
||||
/* Everything is unlocked, check for a resize */
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
GetSize(windata->surface, &cw, &ch));
|
||||
if (cw != window->w || ch != window->h)
|
||||
SDL_DFB_CHECKERR(windata->window->
|
||||
ResizeSurface(windata->window, window->w,
|
||||
window->h));
|
||||
DirectFB_AdjustWindowSurface(window);
|
||||
}
|
||||
|
||||
if (ctx != NULL) {
|
||||
|
@ -266,8 +259,8 @@ DirectFB_GL_SwapWindow(_THIS, SDL_Window * window)
|
|||
|
||||
if (1 || windata->gl_context) {
|
||||
/* SDL_DFB_CHECKERR(windata->gl_context->context->Unlock(windata->gl_context->context)); */
|
||||
SDL_DFB_CHECKERR(windata->surface->
|
||||
Flip(windata->surface, ®ion, DSFLIP_ONSYNC));
|
||||
SDL_DFB_CHECKERR(windata->surface->Flip(windata->surface, ®ion,
|
||||
DSFLIP_ONSYNC));
|
||||
/* SDL_DFB_CHECKERR(windata->gl_context->context->Lock(windata->gl_context->context)); */
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue