init script fixes, fixed udev
[hdw-linux/hdw-linux.git] / packages / hackbard / dfbsee / new_api.patch
1 --- ./src/main.c.orig   2005-08-12 05:48:27.000000000 +0200
2 +++ ./src/main.c        2005-08-12 05:50:41.000000000 +0200
3 @@ -53,7 +53,7 @@
4  main (int    argc, 
5        char **argv)
6  {
7 -  DFBCardCapabilities    caps;
8 +  DFBGraphicsDeviceDescription desc;
9    DFBSurfaceDescription  dsc;
10    IDirectFBEventBuffer  *buffer;
11    IDirectFBSurface      *image_area;
12 @@ -78,8 +78,8 @@
13    /* create the super interface */
14    DFBCHECK (DirectFBCreate (&dfb));
15  
16 -  dfb->GetCardCapabilities (dfb, &caps);
17 -  hw_stretchblit = caps.acceleration_mask & DFXL_STRETCHBLIT;
18 +  dfb->GetDeviceDescription (dfb, &desc);
19 +  hw_stretchblit = desc.acceleration_mask & DFXL_STRETCHBLIT;
20    
21    dfb->SetCooperativeLevel (dfb, DFSCL_FULLSCREEN);
22