summaryrefslogtreecommitdiff
blob: 4396aef6a9a1b2034e7490648f32e9a4f861363d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
*** dfb.c	2003-01-31 03:51:59.000000000 -0500
--- dfb-new.c	2005-07-10 15:12:37.000000000 -0400
***************
*** 24,34 ****
  /* DirectFB interfaces needed */
  IDirectFB               *dfb = NULL;
  IDirectFBSurface        *primary;
  IDirectFBDisplayLayer   *layer;
  IDirectFBInputDevice    *keyboard;
! IDirectFBInputDevice    *mouse;
  IDirectFBEventBuffer    *input_buffer;
  DFBResult err;
  DFBSurfaceDescription dsc;
  DFBCardCapabilities caps;
  DFBDisplayLayerConfig layer_config;
--- 24,34 ----
  /* DirectFB interfaces needed */
  IDirectFB               *dfb = NULL;
  IDirectFBSurface        *primary;
  IDirectFBDisplayLayer   *layer;
  IDirectFBInputDevice    *keyboard;
! /* IDirectFBInputDevice    *mouse; */
  IDirectFBEventBuffer    *input_buffer;
  DFBResult err;
  DFBSurfaceDescription dsc;
  DFBCardCapabilities caps;
  DFBDisplayLayerConfig layer_config;
***************
*** 64,74 ****
       dsc.pixelformat = DSPF_RGB16;
       DFBCHECK(dfb->CreateSurface(dfb, &dsc, &primary ));
       primary->GetSize (primary, &opt.client.width, &opt.client.height);
  
       DFBCHECK(dfb->GetInputDevice( dfb, DIDID_KEYBOARD, &keyboard ));
!      DFBCHECK(dfb->GetInputDevice( dfb, DIDID_MOUSE, &mouse ));
       DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE, &input_buffer));
  }
  
  
  /*
--- 64,74 ----
       dsc.pixelformat = DSPF_RGB16;
       DFBCHECK(dfb->CreateSurface(dfb, &dsc, &primary ));
       primary->GetSize (primary, &opt.client.width, &opt.client.height);
  
       DFBCHECK(dfb->GetInputDevice( dfb, DIDID_KEYBOARD, &keyboard ));
!      /* DFBCHECK(dfb->GetInputDevice( dfb, DIDID_MOUSE, &mouse )); */
       DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE, &input_buffer));
  }
  
  
  /*
***************
*** 78,88 ****
  dfb_deinit()
  {
       primary->Release( primary );
       input_buffer->Release(input_buffer);
       keyboard->Release( keyboard );
!      mouse->Release( mouse );
       layer->Release( layer );
       dfb->Release( dfb ); 
  }
   
  void
--- 78,88 ----
  dfb_deinit()
  {
       primary->Release( primary );
       input_buffer->Release(input_buffer);
       keyboard->Release( keyboard );
!      /* mouse->Release( mouse ); */
       layer->Release( layer );
       dfb->Release( dfb ); 
  }
   
  void