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;
  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;

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to