Re: [Freevo-users] Re: cvs DirectFB with cvs SDL12

2005-09-27 Thread Juha Pahkala

Lucian Muresan wrote:


Juha Pahkala wrote:
 

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;
  DFBResultret;
+#if (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
  DFBCardCapabilities  caps;
+#else
+  DFBGraphicsDeviceDescription caps;
+#endif
  DFBDisplayLayerConfigdlc;
  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;
 



Yep, the above did the trick, Thank You alot Lucian!!!

on with the compiling...

juhis


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very

own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Re: cvs DirectFB with cvs SDL12

2005-09-27 Thread Lucian Muresan
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;
   DFBResultret;
+#if (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
   DFBCardCapabilities  caps;
+#else
+  DFBGraphicsDeviceDescription caps;
+#endif
   DFBDisplayLayerConfigdlc;
   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;