src/video/directfb/SDL_DirectFB_video.c
changeset 1165 4fa705cdecb9
parent 1029 f87f87efd45a
child 1312 c9b51268668f
     1.1 --- a/src/video/directfb/SDL_DirectFB_video.c	Tue Nov 01 04:14:24 2005 +0000
     1.2 +++ b/src/video/directfb/SDL_DirectFB_video.c	Tue Nov 01 04:18:08 2005 +0000
     1.3 @@ -40,6 +40,7 @@
     1.4  #include <sys/mman.h>
     1.5  
     1.6  #include <directfb.h>
     1.7 +#include <directfb_version.h>
     1.8  
     1.9  #include "SDL.h"
    1.10  #include "SDL_error.h"
    1.11 @@ -376,7 +377,11 @@
    1.12  {
    1.13    int                      i;
    1.14    DFBResult                ret;
    1.15 +#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
    1.16    DFBCardCapabilities      caps;
    1.17 +#else
    1.18 +  DFBGraphicsDeviceDescription caps;
    1.19 +#endif
    1.20    DFBDisplayLayerConfig    dlc;
    1.21    struct DirectFBEnumRect *rect;
    1.22    IDirectFB               *dfb    = NULL;
    1.23 @@ -448,7 +453,11 @@
    1.24  
    1.25  
    1.26    /* Query card capabilities to get the video memory size */
    1.27 +#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
    1.28    dfb->GetCardCapabilities (dfb, &caps);
    1.29 +#else
    1.30 +  dfb->GetDeviceDescription (dfb, &caps);
    1.31 +#endif
    1.32  
    1.33    this->info.wm_available = 1;
    1.34    this->info.hw_available = 1;