dfb patch

SVN revision: 16867
This commit is contained in:
Carsten Haitzler 2005-09-23 14:53:08 +00:00
parent ee83131e83
commit 8d922d6daa
2 changed files with 12 additions and 0 deletions

View File

@ -26,7 +26,11 @@ main(int argc, char *argv[])
IDirectFBEventBuffer *buffer;
DFBResult err;
DFBSurfaceDescription dsc;
#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
DFBCardCapabilities caps;
#else
DFBGraphicsDeviceDescription caps;
#endif
DFBDisplayLayerConfig layer_config;
DFBInputEvent evt;

View File

@ -75,7 +75,11 @@ int main( int argc, char *argv[] )
IDirectFBEventBuffer *buffer;
DFBDisplayLayerConfig layer_config;
#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
DFBCardCapabilities caps;
#else
DFBGraphicsDeviceDescription caps;
#endif
IDirectFBWindow* upper;
DFBWindowID id1;
@ -88,7 +92,11 @@ int main( int argc, char *argv[] )
DFBCHECK(DirectFBInit( &argc, &argv ));
DFBCHECK(DirectFBCreate( &dfb ));
#if (DIRECTFB_MAJOR_VERSION == 0) && (DIRECTFB_MINOR_VERSION == 9) && (DIRECTFB_MICRO_VERSION < 23)
dfb->GetCardCapabilities( dfb, &caps );
#else
dfb->GetDeviceDescription( dfb, &caps );
#endif
dfb->GetDisplayLayer( dfb, DLID_PRIMARY, &layer );