Juha Pahkala wrote:
> Hello,
> 
> I'm in the process of compiling the right libraries to be able to try 
> out freevo2 cvs (or svn actually :). But I've run into this problem that 
> pydirectfb (which is something that freevo2 requires I guess) requires 
> DirectFB cvs, but SDL12 doesn't compile against the cvs version. And I'd 
> like to keep SDL12 available, since I'd like to be able to keep using my 
> tried and true freevo 1.5.3 (for which I'll certainly try to set up vdr 
> support as described in the previous thread, Thanks for that Mike!!!)
> 
> So, does anybody know if a patch exists against SDL12 cvs to make it 
> compile with DFB cvs?

You might try this one (eventually apply it by hand) if the problem
resides in the changed capabilities function. I mad it for myself a
while ago to be able to compile SDL-1.2.8 with CVS directfb after they
changed this capabilities function. If it's something else, sorry, I
tried ;-).

Lucian
diff -Naur SDL-1.2.8/src/video/directfb/SDL_DirectFB_video.c 
SDL-1.2.8_dfb-0.9.23/src/video/directfb/SDL_DirectFB_video.c
--- SDL-1.2.8/src/video/directfb/SDL_DirectFB_video.c   2005-04-17 
15:26:28.272714448 +0200
+++ SDL-1.2.8_dfb-0.9.23/src/video/directfb/SDL_DirectFB_video.c        
2005-04-17 15:35:14.936649360 +0200
@@ -376,7 +376,11 @@
 {
   int                      i;
   DFBResult                ret;
+#if (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
   DFBCardCapabilities      caps;
+#else
+  DFBGraphicsDeviceDescription caps;
+#endif
   DFBDisplayLayerConfig    dlc;
   struct DirectFBEnumRect *rect;
   IDirectFB               *dfb    = NULL;
@@ -448,7 +452,11 @@
 
 
   /* Query card capabilities to get the video memory size */
+#if (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
   dfb->GetCardCapabilities (dfb, &caps);
+#else
+  dfb->GetDeviceDescription (dfb, &caps);
+#endif
 
   this->info.wm_available = 1;
   this->info.hw_available = 1;

Reply via email to