diff src/video/directfb/SDL_DirectFB_video.h @ 2721:e82a0e3e9b0e

Date: Sun, 20 Jul 2008 22:34:37 +0200 From: Couriersud Subject: Updated DirectFB driver for SDL1.3 please find attached a patch for an updated directfb driver for SDL1.3. It does now - properly supported the new input api. - send unicode text events - support directfb windows - support multiple screens - support hardware YUV scaling for the first YUV texture created. - support hardware scaling for textures. - properly interpret streaming access - support software opengl if one manages to install the mesa directfb driver (broken/not broken in mesa svn) Within bugzilla (http://bugzilla.libsdl.org/show_bug.cgi?id=603) there is another patch which fixes a crash due to GL context creation. Kind regards, couriersud
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Aug 2008 02:32:45 +0000
parents 0e70b4b8cf84
children 140a7edcf2bd
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_video.h	Tue Aug 26 02:26:18 2008 +0000
+++ b/src/video/directfb/SDL_DirectFB_video.h	Tue Aug 26 02:32:45 2008 +0000
@@ -114,8 +114,11 @@
 {
     IDirectFBDisplayLayer *layer;
     DFBSurfacePixelFormat pixelformat;
+    //FIXME: support for multiple layer ...
     DFBDisplayLayerID vidID;
 
+    int vidIDinuse;
+
     int cw;
     int ch;
 
@@ -139,9 +142,9 @@
     IDirectFBGL *gl_context;
     IDirectFBEventBuffer *eventbuffer;
     DFBWindowID windowID;
-    int id;                     // SDL window id
+    int id;                     /* SDL window id */
     DFB_WindowData *next;
-    u8 opacity;
+    Uint8 opacity;
 };
 
 typedef struct _DFB_DeviceData DFB_DeviceData;
@@ -152,6 +155,7 @@
     IDirectFB *dfb;
     int mouse;
     int keyboard;
+    int kbdgeneric;
     DFB_WindowData *firstwin;
 
     int numscreens;
@@ -159,10 +163,9 @@
     DFBDisplayLayerID gralayer[DFB_MAX_SCREENS];
     DFBDisplayLayerID vidlayer[DFB_MAX_SCREENS];
 
-    // auxiliary integer for callbacks
-    int aux;
+    int aux;                    /* auxiliary integer for callbacks */
 
-    // OpenGL
+    /* OpenGL */
     void (*glFinish) (void);
     void (*glFlush) (void);
 };